Skip to contentSkip to conversation

audit: add missing syscalls to signal class

PATCH Applied Jeffrey Bencteux 4 participants 4 messages Nov 11 – Nov 16

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 audit: add missing syscalls to signal class

The pidfd_send_signal(), rt_sigqueueinfo() and rt_tgsigqueueinfo() system calls are missing from the AUDIT_CLASS_SIGNAL* class. It seems to be used only in kernel/auditfilter.c to increment the audit_signals counter.

This counter is used to determine if information related to a target process of a syscall audit rule using signals, such as its pid, should be logged (e54dc2431d740a79a6bd013babade99d71b1714f).

Information related to signals sent via these system calls are currently not correctly logged. The current patch adds it to the AUDIT_CLASS_SIGNAL* class.

---
Changes in v2:
- Removal of unneeded #ifdef guards

 include/asm-generic/audit_signal.h | 3 +++
 1 file changed, 3 insertions(+)
include/asm-generic/audit_signal.h +3 -0
index 6feab7f18a53..c02edbee3311 100644
@@ -1,3 +1,6 @@
 __NR_kill,
 __NR_tgkill,
 __NR_tkill,
+__NR_rt_sigqueueinfo,
+__NR_rt_tgsigqueueinfo,
+__NR_pidfd_send_signal,

base-commit: 6614d4c05c7a661a925b3d8dbf9c70faac3bd2da

Signature · 1 line
2.56.0
#1 lore raw
Sashiko has reviewed this patch and found no issues.
Quoted 9 lines

The pidfd_send_signal(), rt_sigqueueinfo() and rt_tgsigqueueinfo() system calls are missing from the AUDIT_CLASS_SIGNAL* class. It seems to be used only in kernel/auditfilter.c to increment the audit_signals counter.

This counter is used to determine if information related to a target process of a syscall audit rule using signals, such as its pid, should be logged (e54dc2431d740a79a6bd013babade99d71b1714f).

Quoted 5 lines

Information related to signals sent via these system calls are currently not correctly logged. The current patch adds it to the AUDIT_CLASS_SIGNAL* class.

Sashiko has reviewed this patch and found no issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Reviewed-by
#2 lore raw
Quoted 14 lines · On Wed, Nov 11, 2026 at 1:36 PM <[email protected]> wrote:
Quoted 14 lines

The pidfd_send_signal(), rt_sigqueueinfo() and rt_tgsigqueueinfo() system calls are missing from the AUDIT_CLASS_SIGNAL* class. It seems to be used only in kernel/auditfilter.c to increment the audit_signals counter.

This counter is used to determine if information related to a target process of a syscall audit rule using signals, such as its pid, should be logged (e54dc2431d740a79a6bd013babade99d71b1714f).

Information related to signals sent via these system calls are currently not correctly logged. The current patch adds it to the AUDIT_CLASS_SIGNAL* class.

Quoted 8 lines
Quoted 1 line

Sashiko has reviewed this patch and found no issues.

--
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1

Looks good to me.

maintainer Applied
#3 lore raw
In reply to Jeffrey Bencteux
Quoted 14 lines · On Nov 11, 2026 [email protected] wrote:

The pidfd_send_signal(), rt_sigqueueinfo() and rt_tgsigqueueinfo() system calls are missing from the AUDIT_CLASS_SIGNAL* class. It seems to be used only in kernel/auditfilter.c to increment the audit_signals counter.

This counter is used to determine if information related to a target process of a syscall audit rule using signals, such as its pid, should be logged (e54dc2431d740a79a6bd013babade99d71b1714f).

Information related to signals sent via these system calls are currently not correctly logged. The current patch adds it to the AUDIT_CLASS_SIGNAL* class.

Quoted 8 lines

---
Changes in v2:
- Removal of unneeded #ifdef guards

 include/asm-generic/audit_signal.h | 3 +++
 1 file changed, 3 insertions(+)

Merged into audit/dev, thanks!

--
paul-moore.com