mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
namespace: make sure /tmp, /var/tmp and /dev are writable in namespaces we set up
This commit is contained in:
parent
002b226843
commit
664064d60c
Notes:
Lennart Poettering
2014-07-03 20:25:26 +02:00
Backport: bugfix
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user