mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] apparmor: mediate asynchronous file signals
@ 2026-11-23 12:13 Shi Lecun
  0 siblings, 0 replies; only message in thread
From: Shi Lecun @ 2026-11-23 12:13 UTC (permalink / raw)
  To: John Johansen, Georgia Garcia, Alexander Viro, Christian Brauner
  Cc: Paul Moore, James Morris, Serge E. Hallyn, Seth Arnold,
	Jeff Layton, Chuck Lever, Alexander Aring, Jan Kara, apparmor,
	linux-security-module, linux-fsdevel, linux-kernel,
	Fengwei Zhang, Josef Bacik

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@mail.sustech.edu.cn/

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23 12:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 12:13 [PATCH v2 0/2] apparmor: mediate asynchronous file signals Shi Lecun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®