summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-20 03:44:11 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-20 20:58:17 +0100
commit3772995afa7df42c3a332fb085a27cb5d266b893 (patch)
treed95240b81fa1113675fe08713f51841eb535231a /src/core
parentb51f299ae17ebdedecf8f38d98cb94cfee763fa7 (diff)
manager: don't do plymouth in a container
Given that plymouth listens on an abstract namespace socket and if CLONE_NEWNET is not used the abstract namespace is shared with the host we might actually end up send plymouth data to the host.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index 86de0e3fbf..dd0d83d116 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -1806,6 +1806,9 @@ void manager_send_unit_plymouth(Manager *m, Unit *u) {
if (m->running_as != SYSTEMD_SYSTEM)
return;
+ if (detect_container(NULL) > 0)
+ return;
+
if (u->type != UNIT_SERVICE &&
u->type != UNIT_MOUNT &&
u->type != UNIT_SWAP)