Skip to content

Commit

Permalink
Make systemd_userdbd_stream_connect() interface call conditional
Browse files Browse the repository at this point in the history
The systemd_userdbd_stream_connect() interface may not be defined
in older releases, so a check if the interface exists was added.
  • Loading branch information
zpytela authored and radosroka committed Mar 13, 2024
1 parent ff89572 commit 076b104
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fapolicyd.te
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ optional_policy(`
rpm_manage_db(fapolicyd_t)
')

optional_policy(`
systemd_userdbd_stream_connect(fapolicyd_t)
ifdef(`systemd_userdbd_stream_connect',`
optional_policy(`
systemd_userdbd_stream_connect(fapolicyd_t)
')
')

0 comments on commit 076b104

Please sign in to comment.