aboutsummaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorJonghwan Choi <jhbird.choi@samsung.com>2012-04-18 17:23:04 -0400
committerWilly Tarreau <w@1wt.eu>2012-10-07 23:37:27 +0200
commitc15f065adeb5ecf241308c720d4f8b1f7953dce2 (patch)
tree1f4cbd47534809a2967df4a13f99f6992c4e1c8e /security
parent39c46db9e053fa49c3e0b878cdb25dbc2f7be48d (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> [dannf: adjusted to apply to Debian's 2.6.32] Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'security')
-rw-r--r--security/commoncap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/commoncap.c b/security/commoncap.c
index 30972d69f57a..ee9d623608a7 100644
--- a/security/commoncap.c
+++ b/security/commoncap.c
@@ -27,6 +27,7 @@
#include <linux/sched.h>
#include <linux/prctl.h>
#include <linux/securebits.h>
+#include <linux/personality.h>
/*
* If a non-root user executes a setuid-root binary in