diff options
Diffstat (limited to 'kernel/audit.h')
-rw-r--r-- | kernel/audit.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/kernel/audit.h b/kernel/audit.h index 214e14948370..91421679a168 100644 --- a/kernel/audit.h +++ b/kernel/audit.h | |||
@@ -210,6 +210,8 @@ struct audit_context { | |||
210 | 210 | ||
211 | extern bool audit_ever_enabled; | 211 | extern bool audit_ever_enabled; |
212 | 212 | ||
213 | extern void audit_log_session_info(struct audit_buffer *ab); | ||
214 | |||
213 | extern void audit_copy_inode(struct audit_names *name, | 215 | extern void audit_copy_inode(struct audit_names *name, |
214 | const struct dentry *dentry, | 216 | const struct dentry *dentry, |
215 | struct inode *inode); | 217 | struct inode *inode); |
@@ -262,11 +264,11 @@ extern struct audit_entry *audit_dupe_rule(struct audit_krule *old); | |||
262 | extern void audit_log_d_path_exe(struct audit_buffer *ab, | 264 | extern void audit_log_d_path_exe(struct audit_buffer *ab, |
263 | struct mm_struct *mm); | 265 | struct mm_struct *mm); |
264 | 266 | ||
265 | extern struct tty_struct *audit_get_tty(struct task_struct *tsk); | 267 | extern struct tty_struct *audit_get_tty(void); |
266 | extern void audit_put_tty(struct tty_struct *tty); | 268 | extern void audit_put_tty(struct tty_struct *tty); |
267 | 269 | ||
268 | /* audit watch functions */ | 270 | /* audit watch functions */ |
269 | #ifdef CONFIG_AUDIT_WATCH | 271 | #ifdef CONFIG_AUDITSYSCALL |
270 | extern void audit_put_watch(struct audit_watch *watch); | 272 | extern void audit_put_watch(struct audit_watch *watch); |
271 | extern void audit_get_watch(struct audit_watch *watch); | 273 | extern void audit_get_watch(struct audit_watch *watch); |
272 | extern int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op); | 274 | extern int audit_to_watch(struct audit_krule *krule, char *path, int len, u32 op); |
@@ -299,9 +301,9 @@ extern int audit_exe_compare(struct task_struct *tsk, struct audit_fsnotify_mark | |||
299 | #define audit_mark_compare(m, i, d) 0 | 301 | #define audit_mark_compare(m, i, d) 0 |
300 | #define audit_exe_compare(t, m) (-EINVAL) | 302 | #define audit_exe_compare(t, m) (-EINVAL) |
301 | #define audit_dupe_exe(n, o) (-EINVAL) | 303 | #define audit_dupe_exe(n, o) (-EINVAL) |
302 | #endif /* CONFIG_AUDIT_WATCH */ | 304 | #endif /* CONFIG_AUDITSYSCALL */ |
303 | 305 | ||
304 | #ifdef CONFIG_AUDIT_TREE | 306 | #ifdef CONFIG_AUDITSYSCALL |
305 | extern struct audit_chunk *audit_tree_lookup(const struct inode *inode); | 307 | extern struct audit_chunk *audit_tree_lookup(const struct inode *inode); |
306 | extern void audit_put_chunk(struct audit_chunk *chunk); | 308 | extern void audit_put_chunk(struct audit_chunk *chunk); |
307 | extern bool audit_tree_match(struct audit_chunk *chunk, struct audit_tree *tree); | 309 | extern bool audit_tree_match(struct audit_chunk *chunk, struct audit_tree *tree); |