Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions policy/modules/system/authlogin.if
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ interface(`auth_use_pam_systemd',`
systemd_dbus_chat_logind($1)
systemd_read_logind_state($1)
systemd_use_logind_fds($1)
systemd_connectto_logind_sockets($1)

# to read /etc/machine-id
files_read_etc_runtime_files($1)
Expand Down
19 changes: 19 additions & 0 deletions policy/modules/system/systemd.if
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,25 @@ interface(`systemd_use_logind_fds',`
allow $1 systemd_logind_t:fd use;
')

######################################
## <summary>
## Connect to systemd logind
## sockets.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`systemd_connectto_logind_sockets',`
gen_require(`
type systemd_logind_t;
')

allow $1 systemd_logind_t:unix_stream_socket connectto;
')

######################################
## <summary>
## Watch logind sessions dirs.
Expand Down
Loading