guix-patches
[Top][All Lists]
Advanced

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

bug#74002: [PATCH] create directory with specified permissions in mkdir-


From: Ludovic Courtès
Subject: bug#74002: [PATCH] create directory with specified permissions in mkdir-p/perms
Date: Sun, 03 Nov 2024 23:14:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Hi,

Reepca Russelstein <reepca@russelstein.xyz> skribis:

> From 736515a6e2e0e403c076c74b3019b69518a6bc9e Mon Sep 17 00:00:00 2001
> From: Reepca Russelstein <reepca@russelstein.xyz>
> Date: Fri, 25 Oct 2024 01:04:48 -0500
> Subject: [PATCH] gnu: build: 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

Applied, thanks for fixing this!

Ludo’.





reply via email to

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