add a rundir for root

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2016-09-14 08:46:07 +03:00
parent 58054382e2
commit 6535b2b0e3

2
rc.in
View File

@ -185,6 +185,8 @@ rc.main() {
# Default XDG_RUNTIME_DIR for all non-system users # Default XDG_RUNTIME_DIR for all non-system users
# rtkit:x:133:133:RealtimeKit:/proc:/sbin/nologin # rtkit:x:133:133:RealtimeKit:/proc:/sbin/nologin
# Also add one for root
cfg_tmpdirs+=( "/run/user/0:700:0:0" )
while IFS=':' read -r _ _ uid gid _; do while IFS=':' read -r _ _ uid gid _; do
if (( uid >= 1000 )); then if (( uid >= 1000 )); then
cfg_tmpdirs+=( "/run/user/$uid:700:$uid:$gid" ) cfg_tmpdirs+=( "/run/user/$uid:700:$uid:$gid" )