Skip to content

Commit 0fe3c7f

Browse files
rgbriggspcmoore
authored andcommitted
audit: localize audit_log_session_info prototype
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>
1 parent f905c2f commit 0fe3c7f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/linux/audit.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,6 @@ extern int audit_classify_compat_syscall(int abi, unsigned syscall);
115115

116116
struct filename;
117117

118-
extern void audit_log_session_info(struct audit_buffer *ab);
119-
120118
#define AUDIT_OFF 0
121119
#define AUDIT_ON 1
122120
#define AUDIT_LOCKED 2

‎kernel/audit.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ struct audit_context {
210210

211211
extern bool audit_ever_enabled;
212212

213+
extern void audit_log_session_info(struct audit_buffer *ab);
214+
213215
extern void audit_copy_inode(struct audit_names *name,
214216
const struct dentry *dentry,
215217
struct inode *inode);

0 commit comments

Comments
 (0)