diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 7df0f2ee1e88..25905d09500e 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -3305,7 +3305,8 @@ static int selinux_inode_setxattr(struct dentry *dentry, const char *name, | |||
3305 | } else { | 3305 | } else { |
3306 | audit_size = 0; | 3306 | audit_size = 0; |
3307 | } | 3307 | } |
3308 | ab = audit_log_start(current->audit_context, GFP_ATOMIC, AUDIT_SELINUX_ERR); | 3308 | ab = audit_log_start(audit_context(), |
3309 | GFP_ATOMIC, AUDIT_SELINUX_ERR); | ||
3309 | audit_log_format(ab, "op=setxattr invalid_context="); | 3310 | audit_log_format(ab, "op=setxattr invalid_context="); |
3310 | audit_log_n_untrustedstring(ab, value, audit_size); | 3311 | audit_log_n_untrustedstring(ab, value, audit_size); |
3311 | audit_log_end(ab); | 3312 | audit_log_end(ab); |
@@ -6460,7 +6461,9 @@ static int selinux_setprocattr(const char *name, void *value, size_t size) | |||
6460 | audit_size = size - 1; | 6461 | audit_size = size - 1; |
6461 | else | 6462 | else |
6462 | audit_size = size; | 6463 | audit_size = size; |
6463 | ab = audit_log_start(current->audit_context, GFP_ATOMIC, AUDIT_SELINUX_ERR); | 6464 | ab = audit_log_start(audit_context(), |
6465 | GFP_ATOMIC, | ||
6466 | AUDIT_SELINUX_ERR); | ||
6464 | audit_log_format(ab, "op=fscreate invalid_context="); | 6467 | audit_log_format(ab, "op=fscreate invalid_context="); |
6465 | audit_log_n_untrustedstring(ab, value, audit_size); | 6468 | audit_log_n_untrustedstring(ab, value, audit_size); |
6466 | audit_log_end(ab); | 6469 | audit_log_end(ab); |