Subject: linux-next: build failure in Linus' tree

From: Stephen Rothwell <[email-masked]>
Date: Thu, 19 Apr 2012 10:41:45 +1000

Hi Linus,

While building Linus' tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:

security/commoncap.c: In function 'cap_bprm_set_creds':
security/commoncap.c:510:22: error: 'PER_CLEAR_ON_SETID' undeclared (first use in this function)

Caused by commit d52fc5dde171 ("fcaps: clear the same personality flags as suid when fcaps are used").

I added this patch for today:

From: Stephen Rothwell <[email-masked]>
Date: Thu, 19 Apr 2012 10:38:26 +1000
Subject: [PATCH] security: commoncap.c needs to include personality.h

fixes this build error on PowerPC:

security/commoncap.c: In function 'cap_bprm_set_creds':
security/commoncap.c:510:22: error: 'PER_CLEAR_ON_SETID' undeclared (first use in this function)

Signed-off-by: Stephen Rothwell <[email-masked]>
---
 security/commoncap.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/security/commoncap.c b/security/commoncap.c
index 0ecf4ba..71a166a 100644
--- a/security/commoncap.c
+++ b/security/commoncap.c
@@ -29,6 +29,7 @@
 #include <linux/securebits.h>
 #include <linux/user_namespace.h>
 #include <linux/binfmts.h>
+#include <linux/personality.h>
 
 /*
  * If a non-root user executes a setuid-root binary in
-- 
1.7.10.rc3

-- 
Cheers,
Stephen Rothwell                    [email-masked]
http://www.canb.auug.org.au/~sfr/