audit.h (1c2da0293836c2d20af22eb8831225413321370e) | audit.h (15bcf785ba268a1fb2b270233a7ae56d9e0ebc3a) |
---|---|
1/*- 2 * Copyright (c) 1999-2005 Apple Inc. 3 * Copyright (c) 2016-2017 Robert N. M. Watson 4 * All rights reserved. 5 * 6 * This software was developed by BAE Systems, the University of Cambridge 7 * Computer Laboratory, and Memorial University under DARPA/AFRL contract 8 * FA8650-15-C-7558 ("CADETS"), as part of the DARPA Transparent Computing --- 92 unchanged lines hidden (view full) --- 101void audit_arg_process(struct proc *p); 102void audit_arg_signum(u_int signum); 103void audit_arg_socket(int sodomain, int sotype, int soprotocol); 104void audit_arg_sockaddr(struct thread *td, int dirfd, struct sockaddr *sa); 105void audit_arg_auid(uid_t auid); 106void audit_arg_auditinfo(struct auditinfo *au_info); 107void audit_arg_auditinfo_addr(struct auditinfo_addr *au_info); 108void audit_arg_upath1(struct thread *td, int dirfd, char *upath); | 1/*- 2 * Copyright (c) 1999-2005 Apple Inc. 3 * Copyright (c) 2016-2017 Robert N. M. Watson 4 * All rights reserved. 5 * 6 * This software was developed by BAE Systems, the University of Cambridge 7 * Computer Laboratory, and Memorial University under DARPA/AFRL contract 8 * FA8650-15-C-7558 ("CADETS"), as part of the DARPA Transparent Computing --- 92 unchanged lines hidden (view full) --- 101void audit_arg_process(struct proc *p); 102void audit_arg_signum(u_int signum); 103void audit_arg_socket(int sodomain, int sotype, int soprotocol); 104void audit_arg_sockaddr(struct thread *td, int dirfd, struct sockaddr *sa); 105void audit_arg_auid(uid_t auid); 106void audit_arg_auditinfo(struct auditinfo *au_info); 107void audit_arg_auditinfo_addr(struct auditinfo_addr *au_info); 108void audit_arg_upath1(struct thread *td, int dirfd, char *upath); |
109void audit_arg_upath1_canon(char *upath); |
|
109void audit_arg_upath2(struct thread *td, int dirfd, char *upath); | 110void audit_arg_upath2(struct thread *td, int dirfd, char *upath); |
111void audit_arg_upath2_canon(char *upath); |
|
110void audit_arg_vnode1(struct vnode *vp); 111void audit_arg_vnode2(struct vnode *vp); 112void audit_arg_text(char *text); 113void audit_arg_cmd(int cmd); 114void audit_arg_svipc_cmd(int cmd); 115void audit_arg_svipc_perm(struct ipc_perm *perm); 116void audit_arg_svipc_id(int id); 117void audit_arg_svipc_addr(void *addr); --- 211 unchanged lines hidden (view full) --- 329 audit_arg_uid((uid)); \ 330} while (0) 331 332#define AUDIT_ARG_UPATH1(td, dirfd, upath) do { \ 333 if (AUDITING_TD(curthread)) \ 334 audit_arg_upath1((td), (dirfd), (upath)); \ 335} while (0) 336 | 112void audit_arg_vnode1(struct vnode *vp); 113void audit_arg_vnode2(struct vnode *vp); 114void audit_arg_text(char *text); 115void audit_arg_cmd(int cmd); 116void audit_arg_svipc_cmd(int cmd); 117void audit_arg_svipc_perm(struct ipc_perm *perm); 118void audit_arg_svipc_id(int id); 119void audit_arg_svipc_addr(void *addr); --- 211 unchanged lines hidden (view full) --- 331 audit_arg_uid((uid)); \ 332} while (0) 333 334#define AUDIT_ARG_UPATH1(td, dirfd, upath) do { \ 335 if (AUDITING_TD(curthread)) \ 336 audit_arg_upath1((td), (dirfd), (upath)); \ 337} while (0) 338 |
339#define AUDIT_ARG_UPATH1_CANON(upath) do { \ 340 if (AUDITING_TD(curthread)) \ 341 audit_arg_upath1_canon((upath)); \ 342} while (0) 343 |
|
337#define AUDIT_ARG_UPATH2(td, dirfd, upath) do { \ 338 if (AUDITING_TD(curthread)) \ 339 audit_arg_upath2((td), (dirfd), (upath)); \ 340} while (0) 341 | 344#define AUDIT_ARG_UPATH2(td, dirfd, upath) do { \ 345 if (AUDITING_TD(curthread)) \ 346 audit_arg_upath2((td), (dirfd), (upath)); \ 347} while (0) 348 |
349#define AUDIT_ARG_UPATH2_CANON(upath) do { \ 350 if (AUDITING_TD(curthread)) \ 351 audit_arg_upath2_canon((upath)); \ 352} while (0) 353 |
|
342#define AUDIT_ARG_VALUE(value) do { \ 343 if (AUDITING_TD(curthread)) \ 344 audit_arg_value((value)); \ 345} while (0) 346 347#define AUDIT_ARG_VNODE1(vp) do { \ 348 if (AUDITING_TD(curthread)) \ 349 audit_arg_vnode1((vp)); \ --- 64 unchanged lines hidden (view full) --- 414#define AUDIT_ARG_SVIPC_CMD(cmd) 415#define AUDIT_ARG_SVIPC_PERM(perm) 416#define AUDIT_ARG_SVIPC_ID(id) 417#define AUDIT_ARG_SVIPC_ADDR(addr) 418#define AUDIT_ARG_SVIPC_WHICH(which) 419#define AUDIT_ARG_TEXT(text) 420#define AUDIT_ARG_UID(uid) 421#define AUDIT_ARG_UPATH1(td, dirfd, upath) | 354#define AUDIT_ARG_VALUE(value) do { \ 355 if (AUDITING_TD(curthread)) \ 356 audit_arg_value((value)); \ 357} while (0) 358 359#define AUDIT_ARG_VNODE1(vp) do { \ 360 if (AUDITING_TD(curthread)) \ 361 audit_arg_vnode1((vp)); \ --- 64 unchanged lines hidden (view full) --- 426#define AUDIT_ARG_SVIPC_CMD(cmd) 427#define AUDIT_ARG_SVIPC_PERM(perm) 428#define AUDIT_ARG_SVIPC_ID(id) 429#define AUDIT_ARG_SVIPC_ADDR(addr) 430#define AUDIT_ARG_SVIPC_WHICH(which) 431#define AUDIT_ARG_TEXT(text) 432#define AUDIT_ARG_UID(uid) 433#define AUDIT_ARG_UPATH1(td, dirfd, upath) |
434#define AUDIT_ARG_UPATH1_NONCANON(td, upath) |
|
422#define AUDIT_ARG_UPATH2(td, dirfd, upath) | 435#define AUDIT_ARG_UPATH2(td, dirfd, upath) |
436#define AUDIT_ARG_UPATH2_NONCANON(td, upath) |
|
423#define AUDIT_ARG_VALUE(value) 424#define AUDIT_ARG_VNODE1(vp) 425#define AUDIT_ARG_VNODE2(vp) 426 427#define AUDIT_SYSCALL_ENTER(code, td) 428#define AUDIT_SYSCALL_EXIT(error, td) 429 430#define AUDIT_SYSCLOSE(p, fd) 431 432#endif /* AUDIT */ 433 434#endif /* !_SECURITY_AUDIT_KERNEL_H_ */ | 437#define AUDIT_ARG_VALUE(value) 438#define AUDIT_ARG_VNODE1(vp) 439#define AUDIT_ARG_VNODE2(vp) 440 441#define AUDIT_SYSCALL_ENTER(code, td) 442#define AUDIT_SYSCALL_EXIT(error, td) 443 444#define AUDIT_SYSCLOSE(p, fd) 445 446#endif /* AUDIT */ 447 448#endif /* !_SECURITY_AUDIT_KERNEL_H_ */ |