summaryrefslogtreecommitdiff
path: root/libre/notsystemd/0001-nspawn-don-t-hide-bind-tmp-mounts.patch
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-06-17 22:46:41 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-06-17 22:46:41 -0400
commit1795e1d6f84d15ae2686f1238d5fd4b5f8b6b550 (patch)
treeca5b366d2852e07a929b6cb4a602bd36f559fadb /libre/notsystemd/0001-nspawn-don-t-hide-bind-tmp-mounts.patch
parentdfd751fdf2fdf2b5807a5e5e42032ba0b995f8b9 (diff)
downloadabslibre-1795e1d6f84d15ae2686f1238d5fd4b5f8b6b550.tar.gz
abslibre-1795e1d6f84d15ae2686f1238d5fd4b5f8b6b550.tar.bz2
abslibre-1795e1d6f84d15ae2686f1238d5fd4b5f8b6b550.zip
add libre/notsystemd
Diffstat (limited to 'libre/notsystemd/0001-nspawn-don-t-hide-bind-tmp-mounts.patch')
-rw-r--r--libre/notsystemd/0001-nspawn-don-t-hide-bind-tmp-mounts.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/libre/notsystemd/0001-nspawn-don-t-hide-bind-tmp-mounts.patch b/libre/notsystemd/0001-nspawn-don-t-hide-bind-tmp-mounts.patch
new file mode 100644
index 000000000..a5336ece5
--- /dev/null
+++ b/libre/notsystemd/0001-nspawn-don-t-hide-bind-tmp-mounts.patch
@@ -0,0 +1,26 @@
+From 7ec42a45410cb27140292d85ebb0e4b6dcea5555 Mon Sep 17 00:00:00 2001
+From: Dave Reisner <dreisner@archlinux.org>
+Date: Wed, 7 Dec 2016 13:45:48 -0500
+Subject: [PATCH] nspawn: don't hide --bind=/tmp/* mounts
+
+This is a v232-applicable version of upstream c9fd987279a462e.
+---
+ src/nspawn/nspawn-mount.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/nspawn/nspawn-mount.c b/src/nspawn/nspawn-mount.c
+index 115de64..2dabe2a 100644
+--- a/src/nspawn/nspawn-mount.c
++++ b/src/nspawn/nspawn-mount.c
+@@ -382,7 +382,7 @@ int mount_all(const char *dest,
+ { "tmpfs", "/dev", "tmpfs", "mode=755", MS_NOSUID|MS_STRICTATIME, true, false, false },
+ { "tmpfs", "/dev/shm", "tmpfs", "mode=1777", MS_NOSUID|MS_NODEV|MS_STRICTATIME, true, false, false },
+ { "tmpfs", "/run", "tmpfs", "mode=755", MS_NOSUID|MS_NODEV|MS_STRICTATIME, true, false, false },
+- { "tmpfs", "/tmp", "tmpfs", "mode=1777", MS_STRICTATIME, true, true, false },
++ { "tmpfs", "/tmp", "tmpfs", "mode=1777", MS_STRICTATIME, true, false, false },
+ #ifdef HAVE_SELINUX
+ { "/sys/fs/selinux", "/sys/fs/selinux", NULL, NULL, MS_BIND, false, false, false }, /* Bind mount first */
+ { NULL, "/sys/fs/selinux", NULL, NULL, MS_BIND|MS_RDONLY|MS_NOSUID|MS_NOEXEC|MS_NODEV|MS_REMOUNT, false, false, false }, /* Then, make it r/o */
+--
+2.10.2
+