diff options
author | Reepca Russelstein <reepca@russelstein.xyz> | 2024-10-25 01:04:48 -0500 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-11-03 23:10:44 +0100 |
commit | 4e6df8040e539e4635420eef1a2a26af209b614d (patch) | |
tree | 8ac5479b1189a68557fea22bb908b7937b6db991 /gnu/packages | |
parent | 6a8a6171a79dd6b9108cf9d25c8f9a86fd9bb8f8 (diff) | |
download | guix-4e6df8040e539e4635420eef1a2a26af209b614d.tar guix-4e6df8040e539e4635420eef1a2a26af209b614d.tar.gz |
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>
Diffstat (limited to 'gnu/packages')
0 files changed, 0 insertions, 0 deletions