diff options
author | Paul Moore <paul@paul-moore.com> | 2017-03-27 20:30:06 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-03-27 20:30:06 +0200 |
commit | ab6434a1377a768a1e6d3e6cf819eb21724a99c2 (patch) | |
tree | 4dd6e169ecc2feb71e126b2bd56fe3c38cb56f3e /kernel/audit.h | |
parent | audit: fix auditd/kernel connection state tracking (diff) | |
download | linux-ab6434a1377a768a1e6d3e6cf819eb21724a99c2.tar.xz linux-ab6434a1377a768a1e6d3e6cf819eb21724a99c2.zip |
audit: move audit_signal_info() into kernel/auditsc.c
Commit 5b52330bbfe6 ("audit: fix auditd/kernel connection state
tracking") made inlining audit_signal_info() a bit pointless as
it was always calling into auditd_test_task() so let's remove the
inline function in kernel/audit.h and convert __audit_signal_info()
in kernel/auditsc.c into audit_signal_info().
Reviewed-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'kernel/audit.h')
-rw-r--r-- | kernel/audit.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/kernel/audit.h b/kernel/audit.h index 0f1cf6d1878a..0d87f8ab8778 100644 --- a/kernel/audit.h +++ b/kernel/audit.h @@ -333,13 +333,7 @@ extern u32 audit_sig_sid; extern int audit_filter(int msgtype, unsigned int listtype); #ifdef CONFIG_AUDITSYSCALL -extern int __audit_signal_info(int sig, struct task_struct *t); -static inline int audit_signal_info(int sig, struct task_struct *t) -{ - if (auditd_test_task(t) || (audit_signals && !audit_dummy_context())) - return __audit_signal_info(sig, t); - return 0; -} +extern int audit_signal_info(int sig, struct task_struct *t); extern void audit_filter_inodes(struct task_struct *, struct audit_context *); extern struct list_head *audit_killed_trees(void); #else |