selinux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] python/audit2allow: add #include <limits.h> to sepolgen-ifgen-attr-helper.c
@ 2020-07-16 20:29 W. Michael Petullo
  2020-07-19 16:43 ` Nicolas Iooss
  0 siblings, 1 reply; 3+ messages in thread
From: W. Michael Petullo @ 2020-07-16 20:29 UTC (permalink / raw)
  To: selinux

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 53f20818..f010c958 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.26.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-21  6:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-16 20:29 [PATCH] python/audit2allow: add #include <limits.h> to sepolgen-ifgen-attr-helper.c W. Michael Petullo
2020-07-19 16:43 ` Nicolas Iooss
2020-07-21  6:35   ` Nicolas Iooss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).