diff options
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 2c0a0ff41399..d7f06f8b2837 100644 --- a/security/apparmor/lsm.c +++ b/security/apparmor/lsm.c | |||
@@ -670,7 +670,7 @@ static struct security_operations apparmor_ops = { | |||
670 | 670 | ||
671 | static int param_set_aabool(const char *val, const struct kernel_param *kp); | 671 | static int param_set_aabool(const char *val, const struct kernel_param *kp); |
672 | static int param_get_aabool(char *buffer, const struct kernel_param *kp); | 672 | static int param_get_aabool(char *buffer, const struct kernel_param *kp); |
673 | #define param_check_aabool(name, p) __param_check(name, p, int) | 673 | #define param_check_aabool param_check_bool |
674 | static struct kernel_param_ops param_ops_aabool = { | 674 | static struct kernel_param_ops param_ops_aabool = { |
675 | .set = param_set_aabool, | 675 | .set = param_set_aabool, |
676 | .get = param_get_aabool | 676 | .get = param_get_aabool |
@@ -678,7 +678,7 @@ static struct kernel_param_ops param_ops_aabool = { | |||
678 | 678 | ||
679 | static int param_set_aauint(const char *val, const struct kernel_param *kp); | 679 | static int param_set_aauint(const char *val, const struct kernel_param *kp); |
680 | static int param_get_aauint(char *buffer, const struct kernel_param *kp); | 680 | static int param_get_aauint(char *buffer, const struct kernel_param *kp); |
681 | #define param_check_aauint(name, p) __param_check(name, p, int) | 681 | #define param_check_aauint param_check_uint |
682 | static struct kernel_param_ops param_ops_aauint = { | 682 | static struct kernel_param_ops param_ops_aauint = { |
683 | .set = param_set_aauint, | 683 | .set = param_set_aauint, |
684 | .get = param_get_aauint | 684 | .get = param_get_aauint |
@@ -686,7 +686,7 @@ static struct kernel_param_ops param_ops_aauint = { | |||
686 | 686 | ||
687 | static int param_set_aalockpolicy(const char *val, const struct kernel_param *kp); | 687 | static int param_set_aalockpolicy(const char *val, const struct kernel_param *kp); |
688 | static int param_get_aalockpolicy(char *buffer, const struct kernel_param *kp); | 688 | static int param_get_aalockpolicy(char *buffer, const struct kernel_param *kp); |
689 | #define param_check_aalockpolicy(name, p) __param_check(name, p, int) | 689 | #define param_check_aalockpolicy param_check_bool |
690 | static struct kernel_param_ops param_ops_aalockpolicy = { | 690 | static struct kernel_param_ops param_ops_aalockpolicy = { |
691 | .set = param_set_aalockpolicy, | 691 | .set = param_set_aalockpolicy, |
692 | .get = param_get_aalockpolicy | 692 | .get = param_get_aalockpolicy |