lxc / go-lxc

Go bindings for liblxc
https://linuxcontainers.org/lxc
Other
428 stars 77 forks source link

attach: Add options RemountSysProc and ElevatedPrivileges #153

Closed r10r closed 3 years ago

r10r commented 3 years ago

Add attach option RemountSysProc to remount /sys and /proc for the executed command (similar 'lxc-attach --remount-sys-proc'). Add attach option ElevatedPrivileges to elevate all privileges of the executed command (similar to 'lxc-attach --elevated-privileges').

Signed-off-by: Ruben Jenster r.jenster@drachenfels.de

stgraber commented 3 years ago

@brauner quick look please

brauner commented 3 years ago

Looks good to me afaict.

r10r commented 3 years ago

Thanks for merging!