guru/app-misc/oddjob/files/oddjob-0.34.7-src-oddjobd.c-Fix-non-selinux-build.patch
Christopher Byrne ad0022603b
app-misc/oddjob: new package, add 0.34.7
Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
2023-10-11 15:19:56 -05:00

36 lines
1.0 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From 6e0328ab88daed53ffbaca9a7212cf57ff70de69 Mon Sep 17 00:00:00 2001
From: Christopher Byrne <salah.coronya@gmail.com>
Date: Tue, 19 Sep 2023 09:44:59 -0500
Subject: [PATCH 1/3] src/oddjobd.c: Fix non-selinux build
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This fixes a oddjobd.c:2988:61: error: struct <anonymous> has no member
named selinux_enabled
Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
---
src/oddjobd.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/oddjobd.c b/src/oddjobd.c
index ca78550..44de748 100644
--- a/src/oddjobd.c
+++ b/src/oddjobd.c
@@ -2985,7 +2985,11 @@ main(int argc, char **argv)
/* Open a connection to the message bus. */
check_selinux_applicable();
+#if SELINUX_ACLS
ctx = oddjob_dbus_listeners_new(options.bus, globals.selinux_enabled);
+#else
+ ctx = oddjob_dbus_listeners_new(options.bus, 0);
+#endif
if (ctx == NULL) {
fprintf(stderr, "Error connecting to D-Bus!\n");
return 2;
--
2.41.0