Skip to contentSkip to conversation

security: Fix nommu build.

PATCH In review Paul Mundt 2 participants 3 messages Jul 2, 2012 – Jul 3, 2012 Security (LSM)

lore
Share & tools
lore

Paul Mundt

author
#0 lore raw

PATCH 1/1 security: Fix nommu build.

The security + nommu configuration presently blows up with an undefined reference to BDI_CAP_EXEC_MAP:

security/security.c: In function 'mmap_prot':
security/security.c:687:36: error: dereferencing pointer to incomplete type security/security.c:688:16: error: 'BDI_CAP_EXEC_MAP' undeclared (first use in this function) security/security.c:688:16: note: each undeclared identifier is reported only once for each function it appears in

include backing-dev.h directly to fix it up.

---

 security/security.c |    1 +
 1 file changed, 1 insertion(+)
security/security.c +1 -0
index 3efc9b1..860aeb3 100644
@@ -23,6 +23,7 @@
 #include <linux/mman.h>
 #include <linux/mount.h>
 #include <linux/personality.h>
+#include <linux/backing-dev.h>
 #include <net/flow.h>
 
 #define MAX_LSM_EVM_XATTR	2
maintainer
#1 lore raw
Quoted 11 lines · Paul Mundt

The security + nommu configuration presently blows up with an undefined reference to BDI_CAP_EXEC_MAP:

security/security.c: In function 'mmap_prot':
security/security.c:687:36: error: dereferencing pointer to incomplete type security/security.c:688:16: error: 'BDI_CAP_EXEC_MAP' undeclared (first use in this function) security/security.c:688:16: note: each undeclared identifier is reported only once for each function it appears in

include backing-dev.h directly to fix it up.

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next

Signature · 2 lines
James Morris
<[email protected]>
author
#2 lore raw
Quoted 10 lines · James Morris
Quoted 8 lines · Paul Mundt

The security + nommu configuration presently blows up with an undefined reference to BDI_CAP_EXEC_MAP:

security/security.c: In function 'mmap_prot':
security/security.c:687:36: error: dereferencing pointer to incomplete type security/security.c:688:16: error: 'BDI_CAP_EXEC_MAP' undeclared (first use in this function) security/security.c:688:16: note: each undeclared identifier is reported only once for each function it appears in

Quoted 7 lines
Quoted 3 lines

include backing-dev.h directly to fix it up.

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next

I'm not sure how you're managing your trees, but this is needed for Linus's tree.