Commit 127c8c5f authored by Yang Yang's avatar Yang Yang Committed by Paul Moore

audit: Make audit_filter_syscall() return void

No invoker uses the return value of audit_filter_syscall().
So make it return void, and amend the comment of
audit_filter_syscall().
Signed-off-by: default avatarYang Yang <yang.yang29@zte.com.cn>
Reviewed-by: default avatarRichard Guy Briggs <rgb@redhat.com>
[PM: removed the changelog from the description]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent c1de4463
...@@ -799,12 +799,12 @@ static int audit_in_mask(const struct audit_krule *rule, unsigned long val) ...@@ -799,12 +799,12 @@ static int audit_in_mask(const struct audit_krule *rule, unsigned long val)
return rule->mask[word] & bit; return rule->mask[word] & bit;
} }
/* At syscall entry and exit time, this filter is called if the /* At syscall exit time, this filter is called if the audit_state is
* audit_state is not low enough that auditing cannot take place, but is * not low enough that auditing cannot take place, but is also not
* also not high enough that we already know we have to write an audit * high enough that we already know we have to write an audit record
* record (i.e., the state is AUDIT_SETUP_CONTEXT or AUDIT_BUILD_CONTEXT). * (i.e., the state is AUDIT_SETUP_CONTEXT or AUDIT_BUILD_CONTEXT).
*/ */
static enum audit_state audit_filter_syscall(struct task_struct *tsk, static void audit_filter_syscall(struct task_struct *tsk,
struct audit_context *ctx, struct audit_context *ctx,
struct list_head *list) struct list_head *list)
{ {
...@@ -812,7 +812,7 @@ static enum audit_state audit_filter_syscall(struct task_struct *tsk, ...@@ -812,7 +812,7 @@ static enum audit_state audit_filter_syscall(struct task_struct *tsk,
enum audit_state state; enum audit_state state;
if (auditd_test_task(tsk)) if (auditd_test_task(tsk))
return AUDIT_DISABLED; return;
rcu_read_lock(); rcu_read_lock();
list_for_each_entry_rcu(e, list, list) { list_for_each_entry_rcu(e, list, list) {
...@@ -821,11 +821,11 @@ static enum audit_state audit_filter_syscall(struct task_struct *tsk, ...@@ -821,11 +821,11 @@ static enum audit_state audit_filter_syscall(struct task_struct *tsk,
&state, false)) { &state, false)) {
rcu_read_unlock(); rcu_read_unlock();
ctx->current_state = state; ctx->current_state = state;
return state; return;
} }
} }
rcu_read_unlock(); rcu_read_unlock();
return AUDIT_BUILD_CONTEXT; return;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment