git: 318895df272f - main - pdptrace(2): handle audit
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 Nov 2026 04:10:11 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=318895df272fa6d63ba2e5b5cc71e3b8a2bf9f5a
commit 318895df272fa6d63ba2e5b5cc71e3b8a2bf9f5a
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-11-23 03:33:44 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-11-23 04:09:43 +0000
pdptrace(2): handle audit
Reported by: llm-postcr
Fixes: b2f300ee8fc0 ("sys/bsm/audit_kevents.h: add AUE_PDPTRACE")
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
---
sys/security/audit/audit_bsm.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/sys/security/audit/audit_bsm.c b/sys/security/audit/audit_bsm.c
index adc627b1f4c7..6b7eacbf6ecf 100644
--- a/sys/security/audit/audit_bsm.c
+++ b/sys/security/audit/audit_bsm.c
@@ -1450,6 +1450,22 @@ kaudit_to_bsm(struct kaudit_record *kar, struct au_record **pau)
PROCESS_PID_TOKENS(2);
break;
+ case AUE_PDPTRACE:
+ if (ARG_IS_VALID(kar, ARG_CMD)) {
+ tok = au_to_arg32(1, "request", ar->ar_arg_cmd);
+ kau_write(rec, tok);
+ }
+ if (ARG_IS_VALID(kar, ARG_FD)) {
+ tok = au_to_arg32(2, "fd", ar->ar_arg_fd);
+ kau_write(rec, tok);
+ }
+ if (ARG_IS_VALID(kar, ARG_VALUE)) {
+ tok = au_to_arg32(5, "data", ar->ar_arg_value);
+ kau_write(rec, tok);
+ }
+ PROCESS_PID_TOKENS(2);
+ break;
+
case AUE_QUOTACTL:
if (ARG_IS_VALID(kar, ARG_CMD)) {
tok = au_to_arg32(2, "command", ar->ar_arg_cmd);