[PATCH v2 0/2] apparmor: mediate asynchronous file signals
From: Shi Lecun
Date: Mon Nov 23 2026 - 07:14:25 EST
This series rechecks permission when asynchronous signal delivery falls
back to SIGIO and extends AppArmor signal rules to file-generated
SIGIO and SIGURG.
The AppArmor patch uses fown->cred, introduced by Josef Bacik's
8a1e6dacbe37 ("fcntl: use cred_ids_allow_sigio()") in the VFS
vfs-7.5.cred branch.
Build-tested fs/fcntl.o and security/apparmor/ on x86-64 with
CONFIG_SECURITY_APPARMOR=y.
Changes since the RFC
- Move the fcntl fix to patch 1 and carry Christian Brauner's Acked-by.
- Use fown->cred in AppArmor and reuse its existing signal permission
check. Drop the RFC's file_set_fowner hook and private credential
storage.
- Rebase onto the VFS vfs-7.5.cred branch and drop the RFC prefix.
Link to the RFC:
https://lore.kernel.org/linux-security-module/9F545A02F22B16BB+20261107154928.3519030-1-shilc2025@xxxxxxxxxxxxxxxxxxx/
Codex helped adapt the AppArmor hook and revise the changelogs based on
the RFC and Christian's review.
Shi Lecun (2):
fcntl: recheck signal permissions before falling back to SIGIO
apparmor: mediate file-generated signals
fs/fcntl.c | 3 +++
security/apparmor/lsm.c | 11 ++++++++---
2 files changed, 11 insertions(+), 3 deletions(-)
base-commit: d2b2489b608fab4710734de727430eb6b590f025
--
2.56.1