Re: file system permissions regression affecting root

From: Patrick Donnelly
Date: Wed May 13 2020 - 12:52:31 EST


On Wed, May 13, 2020 at 9:11 AM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> On Wed, May 13, 2020 at 08:00:28AM -0700, Patrick Donnelly wrote:
> > In newer kernels (at least 5.6), it appears root is not able to write
> > to files owned by other users in a sticky directory:
>
> Yes. Controlled by /proc/sys/fs/protected_regular, which systemd crowd
> has decided to enable in commit 2732587540035227fe59e4b64b60127352611b35
> [...]

Thanks for the information Al!

However, it seems odd that this depends on the owner of the directory.
i.e. this protection only seems to be enforced if the sticky directory
is owned by root. That's expected?


--
Patrick Donnelly