mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 18:22:37 +02:00
FIXUP: Document removal of resolv.conf
This commit is contained in:
parent
ab0bee5688
commit
8ca1357a41
2 changed files with 10 additions and 4 deletions
|
@ -182,8 +182,11 @@ RUN mkdir -p \
|
||||||
/new_root/tmp \
|
/new_root/tmp \
|
||||||
/new_root/home/dangerzone/dangerzone-image/rootfs
|
/new_root/home/dangerzone/dangerzone-image/rootfs
|
||||||
|
|
||||||
# XXX: Remove /etc/resolv.conf, so that the network configuration of the host
|
# Copy the /etc and /var directories under the new root directory. Also,
|
||||||
# does not leak.
|
# copy /etc/, /opt, and /usr to the Dangerzone image rootfs.
|
||||||
|
#
|
||||||
|
# XXX: We also have to remove the resolv.conf file, in order to not leak any DNS
|
||||||
|
# servers added there during image build time.
|
||||||
RUN cp -r /etc /var /new_root/ \
|
RUN cp -r /etc /var /new_root/ \
|
||||||
&& rm /new_root/etc/resolv.conf
|
&& rm /new_root/etc/resolv.conf
|
||||||
RUN cp -r /etc /opt /usr /new_root/home/dangerzone/dangerzone-image/rootfs \
|
RUN cp -r /etc /opt /usr /new_root/home/dangerzone/dangerzone-image/rootfs \
|
||||||
|
|
|
@ -182,8 +182,11 @@ RUN mkdir -p \
|
||||||
/new_root/tmp \
|
/new_root/tmp \
|
||||||
/new_root/home/dangerzone/dangerzone-image/rootfs
|
/new_root/home/dangerzone/dangerzone-image/rootfs
|
||||||
|
|
||||||
# XXX: Remove /etc/resolv.conf, so that the network configuration of the host
|
# Copy the /etc and /var directories under the new root directory. Also,
|
||||||
# does not leak.
|
# copy /etc/, /opt, and /usr to the Dangerzone image rootfs.
|
||||||
|
#
|
||||||
|
# XXX: We also have to remove the resolv.conf file, in order to not leak any DNS
|
||||||
|
# servers added there during image build time.
|
||||||
RUN cp -r /etc /var /new_root/ \
|
RUN cp -r /etc /var /new_root/ \
|
||||||
&& rm /new_root/etc/resolv.conf
|
&& rm /new_root/etc/resolv.conf
|
||||||
RUN cp -r /etc /opt /usr /new_root/home/dangerzone/dangerzone-image/rootfs \
|
RUN cp -r /etc /opt /usr /new_root/home/dangerzone/dangerzone-image/rootfs \
|
||||||
|
|
Loading…
Reference in a new issue