Skip to content

Commit

Permalink
security: fix compile error in commoncap.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonghwan Choi authored and James Morris committed Apr 19, 2012
1 parent b6a8958 commit 51b79be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/commoncap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51b79be

Please sign in to comment.