add a rundir for root
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
58054382e2
commit
6535b2b0e3
2
rc.in
2
rc.in
|
@ -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" )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user