summaryrefslogtreecommitdiff
path: root/src/core/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-07-19 02:17:50 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-19 02:17:50 +0200
commit31f92a7df427593532d221dd715e2e0a5b6f3a96 (patch)
tree42597d714fec4eb078923cca694bd343dd83b285 /src/core/manager.c
parent3d141780b8d509e4a6c3083de207cd84cbce187b (diff)
manager: use a private notify sockets in containers to avoid problems with shared abstract socket namespaces
Diffstat (limited to 'src/core/manager.c')
-rw-r--r--src/core/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index 27dc9f38e0..48305e373a 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -96,7 +96,7 @@ static int manager_setup_notify(Manager *m) {
zero(sa);
sa.sa.sa_family = AF_UNIX;
- if (getpid() != 1)
+ if (getpid() != 1 || detect_container(NULL) > 0)
snprintf(sa.un.sun_path, sizeof(sa.un.sun_path), NOTIFY_SOCKET "/%llu", random_ull());
else
strncpy(sa.un.sun_path, NOTIFY_SOCKET, sizeof(sa.un.sun_path));