Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 16 Mar 2021 18:01:34 +0100
From: Mickaël Salaün <>
To: Al Viro <>,
	James Morris <>,
	Serge Hallyn <>
Cc: Mickaël Salaün <>,
	Andy Lutomirski <>,
	Casey Schaufler <>,
	Christian Brauner <>,
	Christoph Hellwig <>,
	David Howells <>,
	Dominik Brodowski <>,
	"Eric W . Biederman" <>,
	John Johansen <>,
	Kees Cook <>,
	Kentaro Takeda <>,
	Tetsuo Handa <>,,,,
Subject: [PATCH v4 0/1] Unprivileged chroot


This new patch group the current task security checks in a dedicated
helper current_chroot_allowed() and extend the patch description.

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), which may be
complementary to the use of user namespaces.

This patch is a follow-up of a previous one sent by Andy Lutomirski some
time ago:

This patch can be applied on top of v5.12-rc3 .  I would really
appreciate constructive reviews.

Previous versions:


Mickaël Salaün (1):
  fs: Allow no_new_privs tasks to call chroot(2)

 fs/open.c | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

base-commit: 1e28eed17697bcf343c6743f0028cc3b5dd88bf0

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.