|
|
@ -32,6 +32,11 @@ pub struct Args { |
|
|
#[arg(long)] |
|
|
#[arg(long)] |
|
|
pub unshare: bool, |
|
|
pub unshare: bool, |
|
|
|
|
|
|
|
|
|
|
|
/// Create a pidfile of `unshare` process when using `--unshare`.
|
|
|
|
|
|
#[cfg(target_os = "linux")] |
|
|
|
|
|
#[arg(long)] |
|
|
|
|
|
pub unshare_pidfile: Option<String>, |
|
|
|
|
|
|
|
|
/// File descriptor for UNIX datagram socket meant to transfer
|
|
|
/// File descriptor for UNIX datagram socket meant to transfer
|
|
|
/// network sockets from global namespace to the new one.
|
|
|
/// network sockets from global namespace to the new one.
|
|
|
/// See `unshare(1)`, `namespaces(7)`, `sendmsg(2)`, `unix(7)`.
|
|
|
/// See `unshare(1)`, `namespaces(7)`, `sendmsg(2)`, `unix(7)`.
|
|
|
@ -103,6 +108,8 @@ impl Default for Args { |
|
|
#[cfg(target_os = "linux")] |
|
|
#[cfg(target_os = "linux")] |
|
|
unshare: false, |
|
|
unshare: false, |
|
|
#[cfg(target_os = "linux")] |
|
|
#[cfg(target_os = "linux")] |
|
|
|
|
|
unshare_pidfile: None, |
|
|
|
|
|
#[cfg(target_os = "linux")] |
|
|
socket_transfer_fd: None, |
|
|
socket_transfer_fd: None, |
|
|
#[cfg(target_os = "linux")] |
|
|
#[cfg(target_os = "linux")] |
|
|
admin_command: Vec::new(), |
|
|
admin_command: Vec::new(), |
|
|
|