Generate bubblewrap CLI arguments for the sandboxed R session
Source:R/sandbox-linux.R
generate_bwrap_args.RdCreates a character vector of bwrap arguments that:
Isolates all namespaces (PID, net, user, mount, UTS, IPC)
Drops all Linux capabilities (
--cap-drop ALL)Bind-mounts system libraries and R read-only
Provides a clean writable
/tmpwith the UDS socket overlaidBlocks all network access via namespace isolation