From: Lennart Poettering Date: Wed, 20 Nov 2013 02:44:11 +0000 (+0100) Subject: manager: don't do plymouth in a container X-Git-Tag: v209~1379 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3772995afa7df42c3a332fb085a27cb5d266b893;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/core/manager.c b/src/core/manager.c index 86de0e3fbfa..dd0d83d1160 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)