mirror of
https://github.com/fsquillace/junest.git
synced 2026-01-23 02:34:30 +00:00
Bind /run/user directory
This commit is contained in:
parent
20f42f6cb7
commit
65c45517e1
2 changed files with 3 additions and 2 deletions
|
|
@ -84,6 +84,7 @@ RM="rm"
|
|||
MKDIR="mkdir"
|
||||
GETENT="getent"
|
||||
CP="cp"
|
||||
ID="id"
|
||||
# Used for checking user namespace in config.gz file
|
||||
ZGREP="zgrep"
|
||||
UNSHARE="unshare"
|
||||
|
|
@ -245,7 +246,7 @@ function check_same_arch() {
|
|||
function provide_common_bindings(){
|
||||
RESULT=""
|
||||
local re='(.*):.*'
|
||||
for bind in "/dev" "/sys" "/proc" "/tmp" "$HOME"
|
||||
for bind in "/dev" "/sys" "/proc" "/tmp" "$HOME" "/run/user/$($ID -u)"
|
||||
do
|
||||
if [[ $bind =~ $re ]]
|
||||
then
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
# vim: ft=sh
|
||||
|
||||
# shellcheck disable=SC2027
|
||||
COMMON_BWRAP_OPTION="--bind "$JUNEST_HOME" / --bind "$HOME" "$HOME" --bind /tmp /tmp --bind /sys /sys --bind /proc /proc --dev-bind-try /dev /dev --unshare-user-try"
|
||||
COMMON_BWRAP_OPTION="--bind "$JUNEST_HOME" / --bind "$HOME" "$HOME" --bind /tmp /tmp --bind /sys /sys --bind /proc /proc --dev-bind-try /dev /dev --bind-try "/run/user/$($ID -u)" "/run/user/$($ID -u)" --unshare-user-try"
|
||||
CONFIG_PROC_FILE="/proc/config.gz"
|
||||
CONFIG_BOOT_FILE="/boot/config-$($UNAME -r)"
|
||||
PROC_USERNS_CLONE_FILE="/proc/sys/kernel/unprivileged_userns_clone"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue