mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-02-20 08:37:55 +07:00
manager: use a private notify sockets in containers to avoid problems with shared abstract socket namespaces
This commit is contained in:
parent
3d141780b8
commit
31f92a7df4
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user