From 076b104495a4dc4a0054c215cc3a23a214206e9d Mon Sep 17 00:00:00 2001 From: Zdenek Pytela Date: Wed, 13 Mar 2024 14:59:10 +0100 Subject: [PATCH] Make systemd_userdbd_stream_connect() interface call conditional The systemd_userdbd_stream_connect() interface may not be defined in older releases, so a check if the interface exists was added. --- fapolicyd.te | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fapolicyd.te b/fapolicyd.te index 1c03e5e..1d4f2d0 100644 --- a/fapolicyd.te +++ b/fapolicyd.te @@ -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) + ') ')