summaryrefslogtreecommitdiff
path: root/src/nspawn.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-14 04:48:14 +0100
committerLennart Poettering <lennart@poettering.net>2011-03-14 15:37:02 +0100
commit90df7e567f668b4d0e7761fd15fa8cebffc759a0 (patch)
tree24cfc4c908e5df6555b513e267163005ad3ead68 /src/nspawn.c
parentb770165a4f54fed39221bcf33e9d040c12d04fcc (diff)
main: log to the console in a container
Diffstat (limited to 'src/nspawn.c')
-rw-r--r--src/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn.c b/src/nspawn.c
index 297bb61f63..f340805f38 100644
--- 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)