c65daa990e
- Build with libsepol.so.1 and libsemanage.so.2 - Set X-GNOME-HiddenUnderSystemd=true in restorecond.desktop file - fixfiles: correctly restore context of mountpoints - sepolgen: print extended permissions in hexadecimal
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
From ccd973f721c48945fc706d8fef6b396580853a9f Mon Sep 17 00:00:00 2001
|
|
From: "W. Michael Petullo" <mike@flyn.org>
|
|
Date: Thu, 16 Jul 2020 15:29:20 -0500
|
|
Subject: [PATCH] python/audit2allow: add #include <limits.h> to
|
|
sepolgen-ifgen-attr-helper.c
|
|
|
|
I found that building on OpenWrt/musl failed with:
|
|
|
|
sepolgen-ifgen-attr-helper.c:152:16: error: 'PATH_MAX' undeclared ...
|
|
|
|
Musl is less "generous" than glibc in recursively including header
|
|
files, and I suspect this is the reason for this error. Explicitly
|
|
including limits.h fixes the problem.
|
|
|
|
Signed-off-by: W. Michael Petullo <mike@flyn.org>
|
|
---
|
|
python/audit2allow/sepolgen-ifgen-attr-helper.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/python/audit2allow/sepolgen-ifgen-attr-helper.c b/python/audit2allow/sepolgen-ifgen-attr-helper.c
|
|
index 53f20818722a..f010c9584c1f 100644
|
|
--- a/python/audit2allow/sepolgen-ifgen-attr-helper.c
|
|
+++ b/python/audit2allow/sepolgen-ifgen-attr-helper.c
|
|
@@ -28,6 +28,7 @@
|
|
|
|
#include <selinux/selinux.h>
|
|
|
|
+#include <limits.h>
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
--
|
|
2.29.0
|
|
|