guix/gnu
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
..
bootloader
build activation: Create directory with specified perms in ‘mkdir-p/perms’. 2024-11-03 23:10:44 +01:00
home home: services: unclutter: Inherit $DISPLAY. 2024-10-14 14:08:44 +02:00
installer
machine
packages gnu: Remove faust-0.9.67. 2024-11-03 12:24:01 +00:00
services services: guix: Add access control to daemon socket. 2024-11-03 23:05:06 +01:00
system image: Add support for btrfs. 2024-10-14 14:08:43 +02:00
tests gnu: postgresql: Deprecate unsupported versions. 2024-10-28 10:41:27 +01:00
artwork.scm
bootloader.scm gnu: bootloader: Use symbol as efi-bootloader-chain name. 2024-10-23 23:56:19 +08:00
ci.scm
compression.scm
home.scm
image.scm
installer.scm installer: Use the latest ‘iso-codes’. 2024-09-28 12:55:54 +02:00
local.mk gnu: btop: Fix SEGFAULT error on Intel GPUs. 2024-11-03 13:09:22 +03:00
machine.scm
packages.scm
services.scm services: cleanup: Reintroduce explicit ‘chmod’ calls. 2024-09-25 17:53:53 +02:00
system.scm system: %default-privileged-programs: Set ping capabilities 2024-11-03 22:54:00 +01:00
tests.scm