mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
* Make the permissions on /run less liberal.
svn path=/nixos/trunk/; revision=30065
This commit is contained in:
parent
c7f568dc06
commit
926091c265
@ -55,7 +55,7 @@ mkdir -p /sys
|
||||
mount -t sysfs none /sys
|
||||
mount -t tmpfs -o "mode=0755,size=@devSize@" none /dev
|
||||
mkdir -p /run
|
||||
mount -t tmpfs -o "mode=1777,size=@runSize@" none /run
|
||||
mount -t tmpfs -o "mode=0755,size=@runSize@" none /run
|
||||
|
||||
|
||||
# Process the kernel command line.
|
||||
|
@ -126,7 +126,7 @@ rm -rf /nix/var/nix/gcroots/tmp /nix/var/nix/temproots
|
||||
if ! mountpoint -q /run; then
|
||||
rm -rf /run
|
||||
mkdir -m 0755 -p /run
|
||||
mount -t tmpfs -o "mode=1777,size=@runSize@" none /run
|
||||
mount -t tmpfs -o "mode=0755,size=@runSize@" none /run
|
||||
fi
|
||||
|
||||
mkdir -m 0700 -p /run/lock
|
||||
|
Loading…
Reference in New Issue
Block a user