diff options
author | Paul Moore <paul@paul-moore.com> | 2016-12-21 18:39:25 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2016-12-21 18:39:25 +0300 |
commit | bfc5e3a6af397dcf9c99a6c1872458e7867c4680 (patch) | |
tree | 09d7f23ed281538d97ead3b78691f2a33eee29ff /scripts/selinux/genheaders/genheaders.c | |
parent | 9287aed2ad1ff1bde5eb190bcd6dccd5f1cf47d3 (diff) | |
download | linux-bfc5e3a6af397dcf9c99a6c1872458e7867c4680.tar.xz |
selinux: use the kernel headers when building scripts/selinux
Commit 3322d0d64f4e ("selinux: keep SELinux in sync with new capability
definitions") added a check on the defined capabilities without
explicitly including the capability header file which caused problems
when building genheaders for users of clang/llvm. Resolve this by
using the kernel headers when building genheaders, which is arguably
the right thing to do regardless, and explicitly including the
kernel's capability.h header file in classmap.h. We also update the
mdp build, even though it wasn't causing an error we really should
be using the headers from the kernel we are building.
Reported-by: Nicolas Iooss <nicolas.iooss@m4x.org>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'scripts/selinux/genheaders/genheaders.c')
-rw-r--r-- | scripts/selinux/genheaders/genheaders.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/selinux/genheaders/genheaders.c b/scripts/selinux/genheaders/genheaders.c index 539855ff31f9..f4dd41f900d5 100644 --- a/scripts/selinux/genheaders/genheaders.c +++ b/scripts/selinux/genheaders/genheaders.c @@ -1,3 +1,7 @@ + +/* NOTE: we really do want to use the kernel headers here */ +#define __EXPORTED_HEADERS__ + #include <stdio.h> #include <stdlib.h> #include <unistd.h> |