Skip to content

Commit 9ada104

Browse files
authored
Merge pull request #1080 from yizhao1/systemd
systemd: set label for /run/userdb
2 parents 7fce57d + 249573c commit 9ada104

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

policy/modules/system/systemd.fc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,6 @@ HOME_ROOT/.+\.home -- gen_context(system_u:object_r:systemd_homed_storage_t,s0)
131131
/run/tmpfiles\.d -d gen_context(system_u:object_r:systemd_tmpfiles_conf_t,s0)
132132
/run/tmpfiles\.d/.* <<none>>
133133

134+
/run/userdb(/.*)? gen_context(system_u:object_r:systemd_userdbd_runtime_t,s0)
135+
134136
/var/log/journal(/.*)? gen_context(system_u:object_r:systemd_journal_t,mls_systemhigh)

policy/modules/system/systemd.te

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ init_daemon_domain(systemd_userdbd_t, systemd_userdbd_exec_t)
369369

370370
type systemd_userdbd_runtime_t alias systemd_userdb_runtime_t;
371371
files_runtime_file(systemd_userdbd_runtime_t)
372+
init_daemon_runtime_file(systemd_userdbd_runtime_t, dir, "userdb")
372373

373374
type systemd_userdbd_unit_t;
374375
init_unit_file(systemd_userdbd_unit_t)

0 commit comments

Comments
 (0)