namespace: make sure /tmp, /var/tmp and /dev are writable in namespaces we set up

This commit is contained in:
Lennart Poettering 2014-07-03 16:27:57 +02:00
parent 002b226843
commit 664064d60c
1 changed files with 1 additions and 1 deletions

View File

@ -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;