Skip to content

Commit

Permalink
init: allow init to use systemd-logind fds
Browse files Browse the repository at this point in the history
type=AVC msg=audit(1734981065.899:133759): avc:  denied  { use } for  pid=1867652 comm="(systemd)" path="/run/systemd/sessions/5.ref" dev="tmpfs" ino=324155 scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:systemd_logind_t:s0 tclass=fd permissive=0

Signed-off-by: Kenton Groombridge <concord@gentoo.org>
  • Loading branch information
0xC0ncord committed Dec 23, 2024
1 parent ccbd12f commit 8ea4ad8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions policy/modules/system/init.te
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ ifdef(`init_systemd',`
systemd_relabelto_journal_dirs(init_t)
systemd_relabelto_journal_files(init_t)
systemd_rw_networkd_netlink_route_sockets(init_t)
systemd_use_logind_fds(init_t)
systemd_manage_userdb_runtime_sock_files(init_t)
systemd_manage_userdb_runtime_dirs(init_t)
systemd_manage_userdb_runtime_symlinks(init_t)
Expand Down

0 comments on commit 8ea4ad8

Please sign in to comment.