security: fix compile error in commoncap.c
authorJonghwan Choi <jhbird.choi@samsung.com>
Wed, 18 Apr 2012 21:23:04 +0000 (17:23 -0400)
committerJames Morris <james.l.morris@oracle.com>
Thu, 19 Apr 2012 02:56:39 +0000 (12:56 +1000)
Add missing "personality.h"
security/commoncap.c: In function 'cap_bprm_set_creds':
security/commoncap.c:510: error: 'PER_CLEAR_ON_SETID' undeclared (first use in this function)
security/commoncap.c:510: error: (Each undeclared identifier is reported only once
security/commoncap.c:510: error: for each function it appears in.)

Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
security/commoncap.c

index 0ecf4ba..71a166a 100644 (file)
@@ -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