Skip to content

Commit ba77314

Browse files
committed
WIP: logind varlink transition
Signed-off-by: Antonio Enrico Russo <[email protected]>
1 parent 6f1c252 commit ba77314

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

policy/modules/system/authlogin.if

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ interface(`auth_use_pam_systemd',`
9292
systemd_dbus_chat_logind($1)
9393
systemd_read_logind_state($1)
9494
systemd_use_logind_fds($1)
95+
systemd_connectto_logind_sockets($1)
9596

9697
# to read /etc/machine-id
9798
files_read_etc_runtime_files($1)

policy/modules/system/systemd.if

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,6 +1470,25 @@ interface(`systemd_use_logind_fds',`
14701470
allow $1 systemd_logind_t:fd use;
14711471
')
14721472

1473+
######################################
1474+
## <summary>
1475+
## Connect to systemd logind
1476+
## sockets.
1477+
## </summary>
1478+
## <param name="domain">
1479+
## <summary>
1480+
## Domain allowed access.
1481+
## </summary>
1482+
## </param>
1483+
#
1484+
interface(`systemd_connectto_logind_sockets',`
1485+
gen_require(`
1486+
type systemd_logind_t;
1487+
')
1488+
1489+
allow $1 systemd_logind_t:unix_stream_socket connectto;
1490+
')
1491+
14731492
######################################
14741493
## <summary>
14751494
## Watch logind sessions dirs.

0 commit comments

Comments
 (0)