coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Symlink flag for chmod


From: Pádraig Brady
Subject: Re: Symlink flag for chmod
Date: Thu, 25 Jan 2024 14:13:32 +0000
User-agent: Mozilla Thunderbird

On 25/01/2024 12:30, Johannes Segitz wrote:
Hello,

chown has a flag that prevents symlink following. chown/chmod is sometimes
used in %post/%pre sections of rpm packages to fix up permissions. When
this is done in user owned directories (somewhere along the path) this is a
security problem. chown allows users to handle this via the -h flag which
instructs it not to follow a symlink.

The attached patch adds this flag for chmod. I read
https://git.savannah.gnu.org/cgit/coreutils.git/plain/README-hacking
but chmod doesn't have an email listed, so I set the patch here.

Please CC me in replies, I'm not subscribed to the list.

We've been consolidating chown/chmod/chgrp recently,
and I was already looking at this.
I'll incorporate your patch with what I was working on.

thanks!
Pádraig




reply via email to

[Prev in Thread] Current Thread [Next in Thread]