lnstools

Linux namespace tools
git clone https://ccx.te2000.cz/git/lnstools
Log | Files | Refs | README

commit 6a07aa99d45f635e2804c4c9f08745fc44a75bc9
parent eef7fb4a9532fd0a9f6c23af5f20196c465df1b6
Author: Jan Pobrislo <ccx@te2000.cz>
Date:   Thu, 11 Dec 2025 15:32:15 +0000

Call pivot_root() with full path

Diffstat:
Msrc/lns-lockdown_main.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lns-lockdown_main.c b/src/lns-lockdown_main.c @@ -84,7 +84,7 @@ void pivot_and_umount( if (chdir(old_place_for_new_root) < 0) { strerr_diefu2sys(111, "chdir to ", old_place_for_new_root) ; } - if (syscall_pivot_root(".", new_place_for_old_root) < 0) { + if (syscall_pivot_root(old_place_for_new_root, new_place_for_old_root) < 0) { strerr_diefu1sys(111, "pivot_root") ; } if (chroot(".") < 0) {