[PATCH v5] security: Expand task_setscheduler LSM hook
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Thu Nov 5 17:35:40 UTC 2026
> At present, the task_setscheduler LSM hook only accepts the target
> task_struct pointer. It lacks visibility into the requested scheduling
> attributes (sched_attr) and the requested CPU affinity mask (cpumask).
> Consequently, security modules are blind to both the target scheduling
> parameters and target CPUs, preventing granular access control decisions
> based on scheduling policy or spatial isolation.
>
> In modern multi-tenant and real-time environments, CPU and scheduling
> isolation are critical boundaries. The inability to audit or restrict
> specific scheduling policy changes or CPU pinning requests limits the
> effectiveness of security policies, particularly when attempting to
> shield isolated or cryptographic cores from unprivileged or compromised
> tasks.
>
> This patch expands the security_task_setscheduler() hook signature to
> [ ... ]
> providing LSMs with the necessary context to enforce strict scheduling
> and affinity policies.
>
> Reviewed-by: Casey Schaufler <casey at schaufler-ca.com>
> Signed-off-by: Aaron Tomlin <atomlin at atomlin.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261105172210.76706-1-atomlin@atomlin.com?part=1
More information about the Linux-security-module-archive
mailing list