aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/audit.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h
index 51e5879af7fc..2f5dc60f8bbd 100644
--- a/include/linux/audit.h
+++ b/include/linux/audit.h
@@ -69,8 +69,9 @@
69#define AUDIT_FS_WATCH 1301 /* Filesystem watch event */ 69#define AUDIT_FS_WATCH 1301 /* Filesystem watch event */
70#define AUDIT_PATH 1302 /* Filname path information */ 70#define AUDIT_PATH 1302 /* Filname path information */
71#define AUDIT_IPC 1303 /* IPC record */ 71#define AUDIT_IPC 1303 /* IPC record */
72#define AUDIT_SOCKET 1304 /* Socket record */ 72#define AUDIT_SOCKETCALL 1304 /* sys_socketcall arguments */
73#define AUDIT_CONFIG_CHANGE 1305 /* Audit system configuration change */ 73#define AUDIT_CONFIG_CHANGE 1305 /* Audit system configuration change */
74#define AUDIT_SOCKADDR 1306 /* sockaddr copied as syscall arg */
74 75
75#define AUDIT_AVC 1400 /* SE Linux avc denial or grant */ 76#define AUDIT_AVC 1400 /* SE Linux avc denial or grant */
76#define AUDIT_SELINUX_ERR 1401 /* Internal SE Linux Errors */ 77#define AUDIT_SELINUX_ERR 1401 /* Internal SE Linux Errors */
@@ -235,6 +236,8 @@ extern int audit_get_stamp(struct audit_context *ctx,
235extern int audit_set_loginuid(struct task_struct *task, uid_t loginuid); 236extern int audit_set_loginuid(struct task_struct *task, uid_t loginuid);
236extern uid_t audit_get_loginuid(struct audit_context *ctx); 237extern uid_t audit_get_loginuid(struct audit_context *ctx);
237extern int audit_ipc_perms(unsigned long qbytes, uid_t uid, gid_t gid, mode_t mode); 238extern int audit_ipc_perms(unsigned long qbytes, uid_t uid, gid_t gid, mode_t mode);
239extern int audit_socketcall(int nargs, unsigned long *args);
240extern int audit_sockaddr(int len, void *addr);
238extern void audit_signal_info(int sig, struct task_struct *t); 241extern void audit_signal_info(int sig, struct task_struct *t);
239#else 242#else
240#define audit_alloc(t) ({ 0; }) 243#define audit_alloc(t) ({ 0; })
@@ -248,6 +251,8 @@ extern void audit_signal_info(int sig, struct task_struct *t);
248#define audit_get_stamp(c,t,s) ({ 0; }) 251#define audit_get_stamp(c,t,s) ({ 0; })
249#define audit_get_loginuid(c) ({ -1; }) 252#define audit_get_loginuid(c) ({ -1; })
250#define audit_ipc_perms(q,u,g,m) ({ 0; }) 253#define audit_ipc_perms(q,u,g,m) ({ 0; })
254#define audit_socketcall(n,a) ({ 0; })
255#define audit_sockaddr(len, addr) ({ 0; })
251#define audit_signal_info(s,t) do { ; } while (0) 256#define audit_signal_info(s,t) do { ; } while (0)
252#endif 257#endif
253 258