[Rpm-maint] Bug: rpm should set a fixed umask of 0022 before running pre-/post scripts
Panu Matilainen
pmatilai at redhat.com
Wed May 28 11:37:24 UTC 2008
On Wed, 28 May 2008, Michael Schroeder wrote:
> On Wed, May 28, 2008 at 01:03:13PM +0300, Panu Matilainen wrote:
>> Rpm 4.4.2.3 and newer sets umask to 0022 on initialization, so it is
>> already "fixed" upstream. Not that 0022 is a magic universally
>> absolutely correct value for umask, it's just what most things (scriptlets
>> notably) expect.
>
> Actually I do not agree with the fix. At least SUSE's scriptlets
> tend to restart daemons if an update is installed, with this
> change the new processes will have an umask that is different
> from the system's configuration.
Note the quotes around "fixed"... Previously rpm and anything (re)started
from it was at the mercy of root user's umask, nothing guarantees that to
be the same as "system configuration" (ie what's in effect at boot time)
either. The new behavior ensures some predictability, not much more.
- Panu -
More information about the Rpm-maint
mailing list