]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Use read-only for bindfs mounts
authorRobert Ancell <robert.ancell@canonical.com>
Tue, 13 Oct 2015 10:35:25 +0000 (11:35 +0100)
committerRobert Ancell <robert.ancell@canonical.com>
Tue, 13 Oct 2015 10:35:25 +0000 (11:35 +0100)
debian/guest-account.sh

index 6a077baa201f93c1a07d4c0875e32629950c041e..c09d886b0537b083fb6046ff22a9a46e2e6cfdb3 100644 (file)
@@ -69,7 +69,7 @@ add_account ()
 
       # Wrap ${gs_skel} in a BindFS mount, so that
       # guest account will see itself as the owner of ${gs_skel}'s contents.
-      bindfs -M $USER $gs_skel ${PRE_HOME}/lower || {
+      bindfs -r -M $USER $gs_skel ${PRE_HOME}/lower || {
         rm -rf "$PRE_HOME"
         rm -rf "$HOME"
         exit 1