aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/audit.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/audit.h')
-rw-r--r--include/linux/audit.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h
index 3628f7cfb178..9b77992c4888 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -174,11 +174,15 @@ extern void audit_log_format(struct audit_buffer *ab,
174 const char *fmt, ...) 174 const char *fmt, ...)
175 __attribute__((format(printf,2,3))); 175 __attribute__((format(printf,2,3)));
176extern void audit_log_end(struct audit_buffer *ab); 176extern void audit_log_end(struct audit_buffer *ab);
177extern void audit_log_hex(struct audit_buffer *ab,
178 const unsigned char *buf,
179 size_t len);
180extern void audit_log_untrustedstring(struct audit_buffer *ab,
181 const char *string);
177extern void audit_log_d_path(struct audit_buffer *ab, 182extern void audit_log_d_path(struct audit_buffer *ab,
178 const char *prefix, 183 const char *prefix,
179 struct dentry *dentry, 184 struct dentry *dentry,
180 struct vfsmount *vfsmnt); 185 struct vfsmount *vfsmnt);
181
182 /* Private API (for auditsc.c only) */ 186 /* Private API (for auditsc.c only) */
183extern void audit_send_reply(int pid, int seq, int type, 187extern void audit_send_reply(int pid, int seq, int type,
184 int done, int multi, 188 int done, int multi,
@@ -190,6 +194,8 @@ extern void audit_log_lost(const char *message);
190#define audit_log_vformat(b,f,a) do { ; } while (0) 194#define audit_log_vformat(b,f,a) do { ; } while (0)
191#define audit_log_format(b,f,...) do { ; } while (0) 195#define audit_log_format(b,f,...) do { ; } while (0)
192#define audit_log_end(b) do { ; } while (0) 196#define audit_log_end(b) do { ; } while (0)
197#define audit_log_hex(a,b,l) do { ; } while (0)
198#define audit_log_untrustedstring(a,s) do { ; } while (0)
193#define audit_log_d_path(b,p,d,v) do { ; } while (0) 199#define audit_log_d_path(b,p,d,v) do { ; } while (0)
194#endif 200#endif
195#endif 201#endif