Linux Security Modules development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
Cc: linux-security-module@vger.kernel.org
Subject: Re: [PATCH v2 01/13] cred: gather the rules for acting on a task by uid
Date: Wed, 04 Nov 2026 14:29:51 +0000	[thread overview]
Message-ID: <sashiko-outbox-197442@kernel.org> (raw)
In-Reply-To: <20261104-b4-cred-ids-v2-1-956213608f16@toxicpanda.com>

> A number of operations let one task act on another without any capability,
> because the two belong to the same user: signals, scheduling attributes,
> priorities, resource limits, ptrace and more. Each of them compares the
> ids of the two credentials by hand. There are twelve such places, in six
> flavours that differ in which ids they look at, and nothing says that they
> belong together.
> 
> That makes them hard to review and hard to change. Nobody can tell from
> one of them whether it differs from its neighbour on purpose. Whoever
> wants to know what an equal uid is good for has to find all twelve, and so
> does whoever has to change it. A place that is overlooked is a hole.
> 
> Gather the rules in kernel/cred.c, side by side:
> 
>  rule     of the subject    of the object      euid 0 used for
> [ ... ]
> goes with the operation, remain with the caller.
> 
> The callers are converted one by one in the patches that follow.
> 
> Signed-off-by: Josef Bacik <josef@toxicpanda.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-b4-cred-ids-v2-0-956213608f16@toxicpanda.com?part=1


  reply	other threads:[~2026-11-04 14:29 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-04 14:24 [PATCH v2 00/13] cred: gather the "same uid" checks between tasks in one place Josef Bacik
2026-11-04 14:24 ` [PATCH v2 01/13] cred: gather the rules for acting on a task by uid Josef Bacik
2026-11-04 14:29   ` sashiko-bot [this message]
2026-11-04 14:24 ` [PATCH v2 02/13] cred: add KUnit tests for the id rules Josef Bacik
2026-11-04 14:28   ` sashiko-bot
2026-11-04 14:24 ` [PATCH v2 03/13] signal: use cred_ids_allow_signal() Josef Bacik
2026-11-04 14:27   ` sashiko-bot
2026-11-04 14:24 ` [PATCH v2 04/13] fcntl: use cred_ids_allow_sigio() Josef Bacik
2026-11-04 14:31   ` sashiko-bot
2026-11-04 14:24 ` [PATCH v2 05/13] sched: use cred_ids_allow_sched() Josef Bacik
2026-11-04 14:27   ` sashiko-bot
2026-11-04 14:24 ` [PATCH v2 06/13] MIPS: " Josef Bacik
2026-11-04 14:27   ` sashiko-bot
2026-11-04 14:24 ` [PATCH v2 07/13] sys: use cred_ids_allow_sched() for setpriority() Josef Bacik
2026-11-04 14:28   ` sashiko-bot
2026-11-04 14:24 ` [PATCH v2 08/13] sys: use cred_ids_allow_control() for prlimit() Josef Bacik
2026-11-04 14:28   ` sashiko-bot
2026-11-04 14:24 ` [PATCH v2 09/13] block: use cred_ids_allow_ioprio() Josef Bacik
2026-11-04 14:28   ` sashiko-bot
2026-11-04 14:24 ` [PATCH v2 10/13] cgroup/v1: use cred_ids_allow_move() Josef Bacik
2026-11-04 14:28   ` sashiko-bot
2026-11-04 14:24 ` [PATCH v2 11/13] fs/resctrl: " Josef Bacik
2026-11-04 14:28   ` sashiko-bot
2026-11-04 14:24 ` [PATCH v2 12/13] ptrace: use cred_ids_allow_control() Josef Bacik
2026-11-04 14:29   ` sashiko-bot
2026-11-04 14:24 ` [PATCH v2 13/13] keys: " Josef Bacik
2026-11-04 14:31   ` 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-197442@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox