Thread (45 messages) 45 messages, 12 authors, 2023-07-28

RE: [PATCH v4 2/5] fs: Add fchmodat2()

From: David Laight <hidden>
Date: 2023-07-27 09:13:34
Also in: linux-alpha, linux-api, linux-arch, linux-fsdevel, linux-mips, linux-s390, linux-sh, linuxppc-dev, lkml, sparclinux

Possibly related (same subject, not in this thread)

From: Aleksa Sarai
Sent: 25 July 2023 17:36
...
We almost certainly want to support AT_EMPTY_PATH at the same time.
Otherwise userspace will still need to go through /proc when trying to
chmod a file handle they have.
That can't be allowed.

Just because a process has a file open and write access to
the directory that contains it doesn't mean they are allowed
to change the file permissions.

They also need directory search access from a directory
they have open through to the containing directory.

	David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help