X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fmanager.c;h=6a755975fb6d6739d05e8c7340b12bb89a340ecc;hp=a2f3570bb624eb66680896fc45378803dc80e0c6;hb=d003f514dab2dbf1a66e11800a50aeaf039d036c;hpb=4faa70046ca0c1775c8e231179716a78cf3291b1 diff --git a/src/core/manager.c b/src/core/manager.c index a2f3570bb..6a755975f 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -427,6 +427,12 @@ static int manager_setup_kdbus(Manager *m) { } log_debug("Successfully set up kdbus on %s", p); + + /* Create the namespace directory here, so that the contents + * of that directory is not visible to non-root users. This is + * necessary to ensure that users cannot get access to busses + * of virtualized users when no UID namespacing is used. */ + mkdir_p_label("/dev/kdbus/ns", 0700); #endif return 0;