[PATCH v1 0/1] Unprivileged chroot
mic at digikod.net
Wed Mar 10 16:09:59 UTC 2021
The chroot system call is currently limited to be used by processes with
the CAP_SYS_CHROOT capability. This protects against malicious
procesess willing to trick SUID-like binaries. The following patch
allows unprivileged users to safely use chroot(2).
This patch is a follow-up of a previous one sent by Andy Lutomirski some
This patch can be applied on top of v5.12-rc2 . I would really
appreciate constructive reviews.
Mickaël Salaün (1):
fs: Allow no_new_privs tasks to call chroot(2)
fs/open.c | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 61 insertions(+), 3 deletions(-)
More information about the Linux-security-module-archive