File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ options:
7575 --no-link2symlink: Disables link2symlink for the filesystem.
7676 --no-sysvipc: Disables sysvipc for the filesystem.
7777 --no-fake-root-id: Disables fake root id for the filesystem.
78+ --no-cap-last-cap: Disables cap last cap fix mount for the filesystem.(only per session)
7879 --no-kill-on-exit: Disables kill on exit for the filesystem.
7980
8081<cmd>:
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ help_login() {
2222 echo " --no-link2symlink: Disables link2symlink for the filesystem."
2323 echo " --no-sysvipc: Disables sysvipc for the filesystem."
2424 echo " --no-fake-root-id: Disables fake root id for the filesystem."
25+ echo " --no-cap-last-cap: Disables cap last cap fix mount for the filesystem.(only per session)"
2526 # echo "--no-cwd-active-directory | --ncwd (unstable): Disables the current working directory for the active directory for the filesystem."
2627 echo " --no-kill-on-exit: Disables kill on exit for the filesystem."
2728 echo
Original file line number Diff line number Diff line change @@ -278,6 +278,7 @@ login() {
278278 local no_sysvipc=false
279279 local no_kill_on_exit=false
280280 local no_cwd_active_directory=false
281+ local no_cap_last_cap=false
281282 local no_fake_root_id=false
282283 local fix_low_ports=false
283284 local make_host_tmp_shared=true # its better to run with shared tmp
@@ -358,6 +359,9 @@ login() {
358359 --no-cwd-active-directory | --ncwd)
359360 no_cwd_active_directory=true; shift
360361 ;;
362+ --no-cap-last-cap)
363+ no_cap_last_cap=true; shift
364+ ;;
361365 --no-kill-on-exit)
362366 no_kill_on_exit=true; shift
363367 ;;
@@ -473,6 +477,12 @@ login() {
473477 set -- " --cwd=/root" " $@ "
474478 fi
475479
480+ # (https://gist.github.com/SaicharanKandukuri/20e66e816a8b2c3ea9d3f7657f09f807)
481+ # [CONDITIONAL]: cap_last_cap fix -> to fix issues with dbus service
482+ if ! $no_cap_last_cap ; then
483+ set -- " --bind /dev/null:/proc/sys/kernel/cap_last_cap" " $@ "
484+ fi
485+
476486 # root-id ( fake 0 id for proot )
477487 if ! $no_fake_root_id ; then
478488 set -- " --root-id" " $@ "
You can’t perform that action at this time.
0 commit comments