guix/gnu/build
Reepca Russelstein 4e6df8040e
activation: Create directory with specified perms in ‘mkdir-p/perms’.
There is currently a window of time between when the desired directory is
created and when its permissions are changed.  During this time, its
permissions are restricted only by the umask.

Of course, in the "directory already exists" case, this doesn't matter, but if
the directory has been specifically deleted ahead of time so that it is
created afresh, this is an unnecessary window.

We can avoid this by passing the caller-provided BITS to 'mkdirat' when
attempting to create the last directory.

* gnu/build/activation.scm (mkdir-p/perms): Create target directory with BITS
  permissions.

Change-Id: I03d2c620872e86b6f591abe0f1c8317aa1245383
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-11-03 23:10:44 +01:00
..
accounts.scm
activation.scm activation: Create directory with specified perms in ‘mkdir-p/perms’. 2024-11-03 23:10:44 +01:00
bootloader.scm
chromium-extension.scm
cross-toolchain.scm
dbus-service.scm
file-systems.scm file-systems: Add support for exFAT. 2024-09-01 02:00:00 +02:00
hurd-boot.scm hurd-boot: Support system init: Create essential device nodes. 2024-10-15 11:13:48 +02:00
icecat-extension.scm
image.scm image: Add support for btrfs. 2024-10-14 14:08:43 +02:00
install.scm
jami-service.scm
linux-boot.scm
linux-container.scm
linux-initrd.scm
linux-modules.scm
locale.scm
marionette.scm
secret-service.scm
shepherd.scm
svg.scm