mirror of
https://github.com/89luca89/distrobox.git
synced 2026-08-19 01:14:49 -05:00
assemble: add unshare-groups support (#1675)
This commit is contained in:
@@ -54,6 +54,7 @@ pre_init_hooks=""
|
||||
pull=""
|
||||
root=""
|
||||
start_now=""
|
||||
unshare_groups=""
|
||||
unshare_ipc=""
|
||||
unshare_netns=""
|
||||
unshare_process=""
|
||||
@@ -281,6 +282,7 @@ run_distrobox()
|
||||
pull=""
|
||||
root=""
|
||||
start_now=""
|
||||
unshare_groups=""
|
||||
unshare_ipc=""
|
||||
unshare_netns=""
|
||||
unshare_process=""
|
||||
@@ -365,6 +367,9 @@ run_distrobox()
|
||||
if [ -n "${unshare_netns}" ] && [ "${unshare_netns}" -eq 1 ]; then
|
||||
result_command="${result_command} --unshare-netns"
|
||||
fi
|
||||
if [ -n "${unshare_groups}" ] && [ "${unshare_groups}" -eq 1 ]; then
|
||||
result_command="${result_command} --unshare-groups"
|
||||
fi
|
||||
if [ -n "${unshare_ipc}" ] && [ "${unshare_ipc}" -eq 1 ]; then
|
||||
result_command="${result_command} --unshare-ipc"
|
||||
fi
|
||||
|
||||
@@ -138,6 +138,7 @@ declared multiple times to be compounded:
|
||||
| nvidia | bool | Specify if you want to enable NVidia drivers integration (default: false) |
|
||||
| pull | bool | Specify if you want to pull the image every time (default: false) |
|
||||
| root | bool | Specify if the container is rootful (default: false) |
|
||||
| unshare_groups | bool | Specify if the container should unshare users additional groups (default: false) |
|
||||
| unshare_ipc | bool | Specify if the container should unshare the ipc namespace (default: false) |
|
||||
| unshare_netns | bool | Specify if the container should unshare the network namespace (default: false) |
|
||||
| unshare_process | bool | Specify if the container should unshare the process (pid) namespace (default: false) |
|
||||
|
||||
Reference in New Issue
Block a user