]> git.ipfire.org Git - pakfire.git/commit
execute: Switch back to chroot()
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jul 2022 18:09:29 +0000 (18:09 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Jul 2022 18:09:29 +0000 (18:09 +0000)
commitc7b9ea4f1febdb8f56dfe775c5c2d26963d72ecc
tree61cde633c9db0f3ac64874a8bb312786f3988f38
parentb28b43627e6ed10653a15984373da14cd0e22b2b
execute: Switch back to chroot()

pivot_root() seems to be very complicated to use and will require us to
have the container run on a different file system. That is however not
possible when Pakfire is running as an un-privileged user.

Since pivot_root() does not seem to offer any advantages over chroot(),
we switch back to chroot() which is easier to use.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/execute.c
src/libpakfire/include/pakfire/mount.h