Skip to content

Commit 51b79be

Browse files
Jonghwan ChoiJames Morris
authored andcommitted
security: fix compile error in commoncap.c
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 <[email protected]> Acked-by: Serge Hallyn <[email protected]> Signed-off-by: James Morris <[email protected]>
1 parent b6a8958 commit 51b79be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

security/commoncap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <linux/securebits.h>
3030
#include <linux/user_namespace.h>
3131
#include <linux/binfmts.h>
32+
#include <linux/personality.h>
3233

3334
/*
3435
* If a non-root user executes a setuid-root binary in

0 commit comments

Comments
 (0)