aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonghwan Choi <jhbird.choi@samsung.com>2012-04-18 17:23:04 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-22 16:21:43 -0700
commit8f05e5d5085e41937dd465606c56fcbb9e382e1b (patch)
tree4f48e4c30e9a949c225f514847f65826beed7d61
parent4ce76587a2e44ff71c5eb49dc9224d6e75a90910 (diff)
security: fix compile error in commoncap.c
commit 51b79bee627d526199b2f6a6bef8ee0c0739b6d1 upstream. 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> Cc: Eric Paris <eparis@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--security/commoncap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/commoncap.c b/security/commoncap.c
index 387fb959e0e..44f096920cd 100644
--- a/security/commoncap.c
+++ b/security/commoncap.c
@@ -28,6 +28,7 @@
#include <linux/prctl.h>
#include <linux/securebits.h>
#include <linux/user_namespace.h>
+#include <linux/personality.h>
/*
* If a non-root user executes a setuid-root binary in