audit: localize audit_log_session_info prototype
authorRichard Guy Briggs <rgb@redhat.com>
Fri, 16 Nov 2018 17:16:35 +0000 (12:16 -0500)
committerPaul Moore <paul@paul-moore.com>
Mon, 19 Nov 2018 17:26:27 +0000 (12:26 -0500)
The audit_log_session_info() function is only used in kernel/audit*, so
move its prototype to kernel/audit.h

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/linux/audit.h
kernel/audit.h

index 9334fbef7bae63fab7993ead40177297ca1c9ca3..58cf665f597e00845454910934b9ce070f201d95 100644 (file)
@@ -115,8 +115,6 @@ extern int audit_classify_compat_syscall(int abi, unsigned syscall);
 
 struct filename;
 
-extern void audit_log_session_info(struct audit_buffer *ab);
-
 #define AUDIT_OFF      0
 #define AUDIT_ON       1
 #define AUDIT_LOCKED   2
index 214e1494837060bd580050c62edfd5838c0104f0..9a3828bd387b24fbd96c970b1fa4c6f1a5cec4d3 100644 (file)
@@ -210,6 +210,8 @@ struct audit_context {
 
 extern bool audit_ever_enabled;
 
+extern void audit_log_session_info(struct audit_buffer *ab);
+
 extern void audit_copy_inode(struct audit_names *name,
                             const struct dentry *dentry,
                             struct inode *inode);