summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-03 16:27:57 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-03 16:28:26 +0200
commit664064d60c36e1f62c7e9177e4c7498035467e07 (patch)
tree2739b2bbd46f1e0ca461ba8372199cb70e0620c9 /src
parent002b226843e77630128da580225f9c3ef8474db2 (diff)
namespace: make sure /tmp, /var/tmp and /dev are writable in namespaces we set up
Diffstat (limited to 'src')
-rw-r--r--src/core/namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/namespace.c b/src/core/namespace.c
index 1d0f740afa..5466b7baec 100644
--- a/src/core/namespace.c
+++ b/src/core/namespace.c
@@ -334,7 +334,7 @@ static int make_read_only(BindMount *m) {
if (IN_SET(m->mode, INACCESSIBLE, READONLY))
r = bind_remount_recursive(m->path, true);
- else if (m->mode == READWRITE)
+ else if (IN_SET(m->mode, READWRITE, PRIVATE_TMP, PRIVATE_VAR_TMP, PRIVATE_DEV))
r = bind_remount_recursive(m->path, false);
else
r = 0;