All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
Cc: linux-security-module@vger.kernel.org
Subject: Re: [RFC PATCH 1/2] apparmor: mediate file-generated signals
Date: Sat, 07 Nov 2026 16:00:17 +0000	[thread overview]
Message-ID: <sashiko-outbox-203004@kernel.org> (raw)
In-Reply-To: <B01DC8398B429509+20261107154928.3519030-2-shilc2025@mail.sustech.edu.cn>

> File-generated SIGIO and SIGURG notifications use file_send_sigiotask
> rather than task_kill. AppArmor does not implement that hook, so its
> signal send and receive rules are not enforced on this path. A profile
> that denies SIGIO reception can therefore still receive an asynchronous
> pipe notification even though a direct kill() is denied.
> 
> Save the credentials of the task that sets the file owner and use them
> as the sender identity at delivery. Resolve the newest sender and
> recipient labels, and use aa_may_signal() to enforce both send and
> receive rules. Treat a zero signal argument as SIGIO.
> 
> Use the existing fown lock to protect the saved credentials. Replace
> the reference when ownership is set again and drop it when the file is
> destroyed. The task triggering I/O need not be the owner setter, and
> delivery can run in interrupt context, so current cannot identify the
> sender.
> 
> QEMU/KVM tests on v7.4-rc1 cover send/receive denials, allowed signals,
> F_SETSIG, process-group and TID owners, profile transitions, ownership
> replacement, unconfined senders and TCP urgent notifications. A separate
> fcntl fix handles the case where queuing a configured signal fails and
> delivery falls back to an unchecked SIGIO.
> 
> Fixes: cd1dbf76b23d ("apparmor: add the ability to mediate signals")
> Signed-off-by: Shi Lecun <shilc2025@mail.sustech.edu.cn>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/B01DC8398B429509+20261107154928.3519030-2-shilc2025@mail.sustech.edu.cn?part=1


  reply	other threads:[~2026-11-07 16:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20261107154928.3519030-1-shilc2025@mail.sustech.edu.cn>
2026-11-07 15:49 ` [RFC PATCH 1/2] apparmor: mediate file-generated signals Shi Lecun
2026-11-07 16:00   ` sashiko-bot [this message]
2026-11-07 15:49 ` [RFC PATCH 2/2] fcntl: recheck signal permissions before falling back to SIGIO Shi Lecun
2026-11-07 15:55   ` sashiko-bot

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=sashiko-outbox-203004@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.