Thread (18 messages) 18 messages, 7 authors, 2025-05-13

Re: [PATCH 1/2] fs/exec: Explicitly unshare fs_struct on exec

From: Kees Cook <hidden>
Date: 2022-10-14 03:54:24
Also in: linux-fsdevel, linux-hardening, linux-mm, lkml, selinux

On Thu, Oct 13, 2022 at 08:18:04PM -0700, Andy Lutomirski wrote:
But seriously, this makes no sense at all.  It should not be possible to exec a program and then, without ptrace, change its cwd out from under it.  Do we really need to preserve this behavior?
Yup, already abandoned:
https://lore.kernel.org/lkml/202210061301.207A20C8E5@keescook/ (local)

-- 
Kees Cook
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help