diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-17 01:02:13 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-17 01:05:37 +0100 |
commit | d003f514dab2dbf1a66e11800a50aeaf039d036c (patch) | |
tree | 48c6f915d4997438875650b4c24172bb2120972f /src/core | |
parent | 4faa70046ca0c1775c8e231179716a78cf3291b1 (diff) |
core: always create /dev/kdbus/ns (and make it private 0700) after setting up the kdbus system bus
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/manager.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index a2f3570bb6..6a755975fb 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; |