All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Unprivileged chroot
@ 2021-03-10 18:18 Mickaël Salaün
  2021-03-10 18:18 ` [PATCH v2 1/1] fs: Allow no_new_privs tasks to call chroot(2) Mickaël Salaün
  0 siblings, 1 reply; 6+ messages in thread
From: Mickaël Salaün @ 2021-03-10 18:18 UTC (permalink / raw)
  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, kernel-hardening, linux-fsdevel,
	linux-kernel, linux-security-module

Hi,

This second patch replaces the custom is_path_beneath() with the
existing path_is_under().

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
time ago:
https://lore.kernel.org/lkml/0e2f0f54e19bff53a3739ecfddb4ffa9a6dbde4d.1327858005.git.luto@amacapital.net/

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

Previous version:
https://lore.kernel.org/r/20210310161000.382796-1-mic@digikod.net

Regards,

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

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


base-commit: a38fd8748464831584a19438cbb3082b5a2dab15
-- 
2.30.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-11 10:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 18:18 [PATCH v2 0/1] Unprivileged chroot Mickaël Salaün
2021-03-10 18:18 ` [PATCH v2 1/1] fs: Allow no_new_privs tasks to call chroot(2) Mickaël Salaün
2021-03-10 19:23   ` Eric W. Biederman
2021-03-10 19:33     ` Jann Horn
2021-03-11 10:37       ` Mickaël Salaün
2021-03-11  9:45     ` David Laight

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.