mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
dhcpcd: create dhcpcd user and chroot folder
dhcpcd 9.x adds privelege seperation by creating a chroot and running parts of the client not as root. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -34,6 +34,11 @@ case "${1}" in
|
||||
mount -n -t tmpfs -o nosuid,nodev,mode=755,size=8M /run /run || failed=1
|
||||
fi
|
||||
|
||||
# create folder for dhcpcd changeroot
|
||||
mkdir -p /run/dhcpcd/chroot
|
||||
chown dhcpcd:dhcpcd /run/dhcpcd/chroot
|
||||
chmod 750 /run/dhcpcd/chroot
|
||||
|
||||
boot_mesg "" ${NORMAL}
|
||||
|
||||
(exit ${failed})
|
||||
|
||||
Reference in New Issue
Block a user