From: Shi Lecun <shilc2025@mail.sustech.edu.cn>
To: John Johansen <john.johansen@canonical.com>,
Georgia Garcia <georgia.garcia@canonical.com>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Christian Brauner <brauner@kernel.org>
Cc: Paul Moore <paul@paul-moore.com>,
James Morris <jmorris@namei.org>,
"Serge E. Hallyn" <serge@hallyn.com>,
Seth Arnold <seth.arnold@canonical.com>,
Jeff Layton <jlayton@kernel.org>, Chuck Lever <cel@kernel.org>,
Alexander Aring <alex.aring@gmail.com>, Jan Kara <jack@suse.cz>,
apparmor@lists.ubuntu.com, linux-security-module@vger.kernel.org,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
Fengwei Zhang <zhangfw@sustech.edu.cn>,
Josef Bacik <josef@toxicpanda.com>
Subject: [PATCH v2 0/2] apparmor: mediate asynchronous file signals
Date: Mon, 23 Nov 2026 20:13:37 +0800 [thread overview]
Message-ID: <ACA178EA434CEC59+cover.1795434950.git.shilc2025@mail.sustech.edu.cn> (raw)
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
reply other threads:[~2026-11-23 12:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ACA178EA434CEC59+cover.1795434950.git.shilc2025@mail.sustech.edu.cn \
--to=shilc2025@mail.sustech.edu.cn \
--cc=alex.aring@gmail.com \
--cc=apparmor@lists.ubuntu.com \
--cc=brauner@kernel.org \
--cc=cel@kernel.org \
--cc=georgia.garcia@canonical.com \
--cc=jack@suse.cz \
--cc=jlayton@kernel.org \
--cc=jmorris@namei.org \
--cc=john.johansen@canonical.com \
--cc=josef@toxicpanda.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=paul@paul-moore.com \
--cc=serge@hallyn.com \
--cc=seth.arnold@canonical.com \
--cc=viro@zeniv.linux.org.uk \
--cc=zhangfw@sustech.edu.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®