Fix DNS resolution by including /etc/resolv.conf in jail

This commit is contained in:
Kristóf Tóth 2020-05-22 15:34:40 +02:00
parent 6aa4adae8f
commit bf0c1d588a

View File

@ -16,6 +16,7 @@ nsjail -Mo
--bindmount_ro /bin --bindmount_ro /sbin \ --bindmount_ro /bin --bindmount_ro /sbin \
--bindmount_ro /usr --bindmount_ro /lib --bindmount_ro /lib64 \ --bindmount_ro /usr --bindmount_ro /lib --bindmount_ro /lib64 \
--bindmount_ro /dev/null --bindmount_ro /dev/urandom --bindmount_ro /dev/random \ --bindmount_ro /dev/null --bindmount_ro /dev/urandom --bindmount_ro /dev/random \
--bindmount_ro /etc/resolv.conf \
--env HOME=/home/proton \ --env HOME=/home/proton \
--env PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin \ --env PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin \
-- ${BIN} -- ${BIN}