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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h
index 2f56546eb248..38999f827a36 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -205,6 +205,7 @@ struct audit_sig_info {
205struct audit_buffer; 205struct audit_buffer;
206struct audit_context; 206struct audit_context;
207struct inode; 207struct inode;
208struct netlink_skb_parms;
208 209
209#define AUDITSC_INVALID 0 210#define AUDITSC_INVALID 0
210#define AUDITSC_SUCCESS 1 211#define AUDITSC_SUCCESS 1
@@ -236,7 +237,7 @@ extern int audit_socketcall(int nargs, unsigned long *args);
236extern int audit_sockaddr(int len, void *addr); 237extern int audit_sockaddr(int len, void *addr);
237extern int audit_avc_path(struct dentry *dentry, struct vfsmount *mnt); 238extern int audit_avc_path(struct dentry *dentry, struct vfsmount *mnt);
238extern void audit_signal_info(int sig, struct task_struct *t); 239extern void audit_signal_info(int sig, struct task_struct *t);
239extern int audit_filter_user(int pid, int type); 240extern int audit_filter_user(struct netlink_skb_parms *cb, int type);
240#else 241#else
241#define audit_alloc(t) ({ 0; }) 242#define audit_alloc(t) ({ 0; })
242#define audit_free(t) do { ; } while (0) 243#define audit_free(t) do { ; } while (0)
@@ -253,7 +254,7 @@ extern int audit_filter_user(int pid, int type);
253#define audit_sockaddr(len, addr) ({ 0; }) 254#define audit_sockaddr(len, addr) ({ 0; })
254#define audit_avc_path(dentry, mnt) ({ 0; }) 255#define audit_avc_path(dentry, mnt) ({ 0; })
255#define audit_signal_info(s,t) do { ; } while (0) 256#define audit_signal_info(s,t) do { ; } while (0)
256#define audit_filter_user(p,t) ({ 1; }) 257#define audit_filter_user(cb,t) ({ 1; })
257#endif 258#endif
258 259
259#ifdef CONFIG_AUDIT 260#ifdef CONFIG_AUDIT