Skip to content

Commit 823723c

Browse files
committed
sshd: guard dbus calls with optional_policy
Just noticed when checking calls for another problem in authlogin. Signed-off-by: Sam James <sam@gentoo.org>
1 parent 16929be commit 823723c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

policy/modules/services/ssh.te

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,10 @@ ifdef(`distro_debian',`
286286
')
287287

288288
ifdef(`init_systemd',`
289-
auth_use_pam_systemd(sshd_t)
290-
init_dbus_chat(sshd_t)
289+
optional_policy(`
290+
auth_use_pam_systemd(sshd_t)
291+
init_dbus_chat(sshd_t)
292+
')
291293
# dynamic users
292294
init_stream_connect(sshd_t)
293295
init_rw_stream_sockets(sshd_t)

0 commit comments

Comments
 (0)