Browse files

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 <>
Acked-by: Serge Hallyn <>
Signed-off-by: James Morris <>
Cc: Eric Paris <>
Signed-off-by: Greg Kroah-Hartman <>
  • Loading branch information...
1 parent 4ce7658 commit 8f05e5d5085e41937dd465606c56fcbb9e382e1b Jonghwan Choi committed with gregkh Apr 18, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 security/commoncap.c
1 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

0 comments on commit 8f05e5d

Please sign in to comment.