freebsd-dev/sys/security/audit
Christian S.J. Peron 757a564248 Add BSM record conversion for a number of syscalls:
- thr_kill(2) and thr_exit(2) generally (no argument auditing here.
- A set of syscalls for the process descriptor family, specifically:
  pdfork(2), pdgetpid(2) and pdkill(2)

  For these syscalls, audit the file descriptor. In the case of pdfork(2)
  a pointer to an integer (file descriptor) is passed in as an argument.
  We audit the post initialized file descriptor (not the random garbage
  that would have been passed in). We will also audit the child process
  which was created from the fork operation (similar to what is done for
  the fork(2) syscall).

  pdkill(2) we audit the signal value and fd, and finally pdgetpid(2)
  just the file descriptor:

- Following is a sample of the produced audit trails:

  header,111,11,pdfork(2),0,Sat May 16 03:07:50 2020, + 394 msec
  argument,0,0x39d,child PID
  argument,2,0x2,flags
  argument,1,0x8,fd
  subject,root,root,0,root,0,924,0,0,0.0.0.0
  return,success,925

  header,79,11,pdgetpid(2),0,Sat May 16 03:07:50 2020, + 394 msec
  argument,1,0x8,fd
  subject,root,root,0,root,0,924,0,0,0.0.0.0
  return,success,0
  trailer,79

  header,135,11,pdkill(2),0,Sat May 16 03:07:50 2020, + 395 msec
  argument,1,0x8,fd
  argument,2,0xf,signal
  process_ex,root,root,0,root,0,925,0,0,0.0.0.0
  subject,root,root,0,root,0,924,0,0,0.0.0.0
  return,success,0
  trailer,135

MFC after:      1 week
2020-05-16 03:45:15 +00:00
..
audit_arg.c audit: provide audit_canon_path variant which accepts vnodes 2020-02-21 01:40:49 +00:00
audit_bsm_db.c The kernel DTrace audit provider (dtaudit) relies on auditd(8) to load 2018-09-03 14:26:43 +00:00
audit_bsm_klib.c audit_canon_path_vp: don't panic if cdir == NULL 2020-04-17 02:09:31 +00:00
audit_bsm.c Add BSM record conversion for a number of syscalls: 2020-05-16 03:45:15 +00:00
audit_dtrace.c Rework the logic around quick checks for auditing that take place at 2018-10-02 15:58:17 +00:00
audit_ioctl.h #include <bsm/audit.h> in security/audit/audit_ioctl.h 2018-05-30 21:50:23 +00:00
audit_pipe.c fix incorrect operator in the AUDITPIPE_SET_QLIMIT bounds check 2018-07-23 16:56:49 +00:00
audit_private.h audit: provide audit_canon_path variant which accepts vnodes 2020-02-21 01:40:49 +00:00
audit_syscalls.c vfs: drop the mostly unused flags argument from VOP_UNLOCK 2020-01-03 22:29:58 +00:00
audit_trigger.c Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
audit_worker.c vfs: drop the mostly unused flags argument from VOP_UNLOCK 2020-01-03 22:29:58 +00:00
audit.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
audit.h audit: provide audit_canon_path variant which accepts vnodes 2020-02-21 01:40:49 +00:00
bsm_domain.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
bsm_errno.c Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
bsm_fcntl.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
bsm_socket_type.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
bsm_token.c sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00