Browse code

Also remove /root, /boot and /srv.

Xavier G authored on 29/02/2016 15:26:21
Showing 1 changed files
... ...
@@ -55,6 +55,13 @@ for directory in {{slash_,}home,tmp,{up,down}load,dev}_dir; do
55 55
 done
56 56
 
57 57
 # Leverage proot to make the browser believe that:
58
+#  - some directories located right under the root, such as /boot, /root and
59
+#    /srv, are absent as they are not expected to be of any use to any web
60
+#    browser.
61
+root_dir_options="
62
+	--bind=/dev/null:/boot \
63
+	--bind=/dev/null:/root \
64
+	--bind=/dev/null:/srv"
58 65
 #   - /home is either empty or contains only our home
59 66
 slash_home_options="--bind=${slash_home_dir}:/home"
60 67
 #   - the home directory is almost empty
... ...
@@ -123,6 +130,7 @@ if [ -x "${proot_path}" ]; then
123 130
 
124 131
 	"${proot_path}" \
125 132
 		${pre_options} \
133
+		${root_dir_options} \
126 134
 		${slash_home_options} \
127 135
 		${home_options} \
128 136
 		${browser_conf_options} \