diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2019-02-05 16:06:30 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2019-02-07 21:44:27 -0500 |
commit | cd108b5c51db30aa01657322bb89e48c98216ff9 (patch) | |
tree | 8439e151ee074d05805be5d2e7e7b2278bfffe26 /kernel/audit.h | |
parent | 18f5c1d567a5d16aa6ebac6a2f42e51fc5030baa (diff) | |
download | linux-cd108b5c51db30aa01657322bb89e48c98216ff9.tar.bz2 |
audit: hide auditsc_get_stamp and audit_serial prototypes
auditsc_get_stamp() and audit_serial() are internal audit functions so
move their prototypes from include/linux/audit.h to kernel/audit.h
so they are not visible to the rest of the kernel.
Signed-off-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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/audit.h b/kernel/audit.h index 82734f438ddd..958d5b8fc1b3 100644 --- a/kernel/audit.h +++ b/kernel/audit.h @@ -261,6 +261,10 @@ extern void audit_put_tty(struct tty_struct *tty); /* audit watch/mark/tree functions */ #ifdef CONFIG_AUDITSYSCALL +extern unsigned int audit_serial(void); +extern int auditsc_get_stamp(struct audit_context *ctx, + struct timespec64 *t, unsigned int *serial); + extern void audit_put_watch(struct audit_watch *watch); extern void audit_get_watch(struct audit_watch *watch); extern int audit_to_watch(struct audit_krule *krule, char *path, int len, @@ -300,6 +304,7 @@ extern void audit_filter_inodes(struct task_struct *tsk, struct audit_context *ctx); extern struct list_head *audit_killed_trees(void); #else /* CONFIG_AUDITSYSCALL */ +#define auditsc_get_stamp(c, t, s) 0 #define audit_put_watch(w) {} #define audit_get_watch(w) {} #define audit_to_watch(k, p, l, o) (-EINVAL) |