Ubuntu Pastebin

Paste from ssweeny at Tue, 23 Aug 2016 21:00:08 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/mount-support.c b/src/mount-support.c
index 6f4dd14..c5273e2 100644
--- a/src/mount-support.c
+++ b/src/mount-support.c
@@ -337,6 +337,9 @@ void sc_setup_mount_profiles(const char *security_tag)
                if (hasmntopt(m, "rw") != NULL) {
                        flags &= ~MS_RDONLY;
                }
+               if (hasmntopt(m, "shared") != NULL) {
+                   flags |= MS_SHARED;
+               }
                if (mount(m->mnt_fsname, m->mnt_dir, NULL, flags, NULL) != 0) {
                        die("cannot mount %s at %s with options %s",
                            m->mnt_fsname, m->mnt_dir, m->mnt_opts);


const udisks2PermanentSlotMount = `
/run /run none bind,rw,shared 0 0
`
Download as text