diff options
Diffstat (limited to 'drivers/tty/tty.h')
-rw-r--r-- | drivers/tty/tty.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/tty/tty.h b/drivers/tty/tty.h index 75624d7d84ae..55003840cd68 100644 --- a/drivers/tty/tty.h +++ b/drivers/tty/tty.h @@ -17,4 +17,18 @@ #define tty_info_ratelimited(tty, f, ...) \ tty_msg(pr_info_ratelimited, tty, f, ##__VA_ARGS__) +/* tty_audit.c */ +#ifdef CONFIG_AUDIT +void tty_audit_add_data(struct tty_struct *tty, const void *data, size_t size); +void tty_audit_tiocsti(struct tty_struct *tty, char ch); +#else +static inline void tty_audit_add_data(struct tty_struct *tty, const void *data, + size_t size) +{ +} +static inline void tty_audit_tiocsti(struct tty_struct *tty, char ch) +{ +} +#endif + #endif |