diff options
author | James Morris <jmorris@namei.org> | 2012-01-08 20:16:48 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2012-01-08 20:16:48 -0500 |
commit | 8fcc99549522fc7a0bbaeb5755855ab0d9a59ce8 (patch) | |
tree | a118eaef15d4ba22247f45ee01537ecc906cd161 /security/apparmor | |
parent | 805a6af8dba5dfdd35ec35dc52ec0122400b2610 (diff) | |
parent | 7b7e5916aa2f46e57f8bd8cb89c34620ebfda5da (diff) |
Merge branch 'next' into for-linus
Conflicts:
security/integrity/evm/evm_crypto.c
Resolved upstream fix vs. next conflict manually.
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/apparmor')
-rw-r--r-- | security/apparmor/audit.c | 2 | ||||
-rw-r--r-- | security/apparmor/lsm.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/security/apparmor/audit.c b/security/apparmor/audit.c index 96502b22b268..f3fafedd798a 100644 --- a/security/apparmor/audit.c +++ b/security/apparmor/audit.c | |||
@@ -133,7 +133,7 @@ static void audit_pre(struct audit_buffer *ab, void *ca) | |||
133 | struct aa_profile *profile = sa->aad.profile; | 133 | struct aa_profile *profile = sa->aad.profile; |
134 | pid_t pid; | 134 | pid_t pid; |
135 | rcu_read_lock(); | 135 | rcu_read_lock(); |
136 | pid = tsk->real_parent->pid; | 136 | pid = rcu_dereference(tsk->real_parent)->pid; |
137 | rcu_read_unlock(); | 137 | rcu_read_unlock(); |
138 | audit_log_format(ab, " parent=%d", pid); | 138 | audit_log_format(ab, " parent=%d", pid); |
139 | if (profile->ns != root_ns) { | 139 | if (profile->ns != root_ns) { |
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c index 37832026e58a..41ae0c6cb903 100644 --- a/security/apparmor/lsm.c +++ b/security/apparmor/lsm.c | |||
@@ -671,7 +671,7 @@ static struct security_operations apparmor_ops = { | |||
671 | 671 | ||
672 | static int param_set_aabool(const char *val, const struct kernel_param *kp); | 672 | static int param_set_aabool(const char *val, const struct kernel_param *kp); |
673 | static int param_get_aabool(char *buffer, const struct kernel_param *kp); | 673 | static int param_get_aabool(char *buffer, const struct kernel_param *kp); |
674 | #define param_check_aabool(name, p) __param_check(name, p, int) | 674 | #define param_check_aabool param_check_bool |
675 | static struct kernel_param_ops param_ops_aabool = { | 675 | static struct kernel_param_ops param_ops_aabool = { |
676 | .set = param_set_aabool, | 676 | .set = param_set_aabool, |
677 | .get = param_get_aabool | 677 | .get = param_get_aabool |
@@ -679,7 +679,7 @@ static struct kernel_param_ops param_ops_aabool = { | |||
679 | 679 | ||
680 | static int param_set_aauint(const char *val, const struct kernel_param *kp); | 680 | static int param_set_aauint(const char *val, const struct kernel_param *kp); |
681 | static int param_get_aauint(char *buffer, const struct kernel_param *kp); | 681 | static int param_get_aauint(char *buffer, const struct kernel_param *kp); |
682 | #define param_check_aauint(name, p) __param_check(name, p, int) | 682 | #define param_check_aauint param_check_uint |
683 | static struct kernel_param_ops param_ops_aauint = { | 683 | static struct kernel_param_ops param_ops_aauint = { |
684 | .set = param_set_aauint, | 684 | .set = param_set_aauint, |
685 | .get = param_get_aauint | 685 | .get = param_get_aauint |
@@ -687,7 +687,7 @@ static struct kernel_param_ops param_ops_aauint = { | |||
687 | 687 | ||
688 | static int param_set_aalockpolicy(const char *val, const struct kernel_param *kp); | 688 | static int param_set_aalockpolicy(const char *val, const struct kernel_param *kp); |
689 | static int param_get_aalockpolicy(char *buffer, const struct kernel_param *kp); | 689 | static int param_get_aalockpolicy(char *buffer, const struct kernel_param *kp); |
690 | #define param_check_aalockpolicy(name, p) __param_check(name, p, int) | 690 | #define param_check_aalockpolicy param_check_bool |
691 | static struct kernel_param_ops param_ops_aalockpolicy = { | 691 | static struct kernel_param_ops param_ops_aalockpolicy = { |
692 | .set = param_set_aalockpolicy, | 692 | .set = param_set_aalockpolicy, |
693 | .get = param_get_aalockpolicy | 693 | .get = param_get_aalockpolicy |