chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unit-printf: add specifiers for the host name, machine id, boot id
[elogind.git]
/
src
/
core
/
namespace.c
diff --git
a/src/core/namespace.c
b/src/core/namespace.c
index 5c2a24653c72708d87f90a26e72ced8534c55060..ba18ddc5b0049dd005a1a7090850cd78826f0316 100644
(file)
--- a/
src/core/namespace.c
+++ b/
src/core/namespace.c
@@
-156,7
+156,7
@@
static int apply_mount(
assert(what);
assert(what);
- r = mount(what, p->path, NULL, MS_BIND, NULL);
+ r = mount(what, p->path, NULL, MS_BIND
|MS_REC
, NULL);
if (r >= 0)
log_debug("Successfully mounted %s to %s", what, p->path);
if (r >= 0)
log_debug("Successfully mounted %s to %s", what, p->path);
@@
-171,7
+171,7
@@
static int make_read_only(Path *p) {
if (p->mode != INACCESSIBLE && p->mode != READONLY)
return 0;
if (p->mode != INACCESSIBLE && p->mode != READONLY)
return 0;
- r = mount(NULL, p->path, NULL, MS_BIND|MS_REMOUNT|MS_RDONLY, NULL);
+ r = mount(NULL, p->path, NULL, MS_BIND|MS_REMOUNT|MS_RDONLY
|MS_REC
, NULL);
if (r < 0)
return -errno;
if (r < 0)
return -errno;