chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
main: log to the console in a container
[elogind.git]
/
src
/
nspawn.c
diff --git
a/src/nspawn.c
b/src/nspawn.c
index 297bb61f63b480f5d01f888e38159152f82d4900..f340805f38339835d8162d291dfd33a73961ef9d 100644
(file)
--- a/
src/nspawn.c
+++ b/
src/nspawn.c
@@
-254,7
+254,7
@@
static int copy_devnodes(const char *dest) {
r = -errno;
}
- if (mount(from, to, "bind", MS_BIND, NULL) < 0) {
+ if (mount(from, to, "bind", MS_BIND
|MS_RDONLY
, NULL) < 0) {
log_error("bind mount for /dev/console failed: %m");
if (r == 0)