pacstrap: enforce permissions on root directories
This commit is contained in:
parent
debff1be89
commit
cc53a33bfd
@ -77,7 +77,9 @@ fi
|
||||
|
||||
# create obligatory directories
|
||||
msg 'Creating install root at %s' "$newroot"
|
||||
mkdir -p "$newroot"/var/{cache/pacman/pkg,lib/pacman} "$newroot"/{dev,proc,sys,run,tmp,etc}
|
||||
mkdir -m 0755 -p "$newroot"/var/{cache/pacman/pkg,lib/pacman} "$newroot"/{dev,run,etc}
|
||||
mkdir -m 1777 "$newroot"/tmp
|
||||
mkdir -m 0555 "$newroot"/{sys,proc}
|
||||
|
||||
# always call umount on quit after this point
|
||||
trap 'api_fs_umount "$newroot" 2>/dev/null' EXIT
|
||||
|
Loading…
Reference in New Issue
Block a user