Skip to content

Commit

Permalink
Smack: compilation fix
Browse files Browse the repository at this point in the history
On some build configurations PER_CLEAR_ON_SETID symbol was not
found when compiling smack_lsm.c. This patch fixes the issue by
explicitly doing #include <linux/personality.h>.

Signed-off-by: Jarkko Sakkinen <jarkko.j.sakkinen@gmail.com>
Signed-off-by: Casey Schaufler <cschaufler@cschaufler-intel.(none)>
  • Loading branch information
Jarkko Sakkinen authored and Casey Schaufler committed Oct 14, 2011
1 parent f8859d9 commit 16014d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/smack/smack_lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include <linux/audit.h>
#include <linux/magic.h>
#include <linux/dcache.h>
#include <linux/personality.h>
#include "smack.h"

#define task_security(task) (task_cred_xxx((task), security))
Expand Down

0 comments on commit 16014d8

Please sign in to comment.