summaryrefslogtreecommitdiffstats
path: root/kernel/audit.h
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2017-03-27 14:30:06 -0400
committerPaul Moore <paul@paul-moore.com>2017-03-27 14:30:06 -0400
commitab6434a1377a768a1e6d3e6cf819eb21724a99c2 (patch)
tree4dd6e169ecc2feb71e126b2bd56fe3c38cb56f3e /kernel/audit.h
parent5b52330bbfe63b3305765354d6046c9f7f89c011 (diff)
downloadlinux-stable-ab6434a1377a768a1e6d3e6cf819eb21724a99c2.tar.gz
linux-stable-ab6434a1377a768a1e6d3e6cf819eb21724a99c2.tar.bz2
linux-stable-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.h8
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