]> git.ipfire.org Git - thirdparty/linux.git/commit
apparmor: fix rlimit for posix cpu timers
authorJohn Johansen <john.johansen@canonical.com>
Sun, 9 Nov 2025 22:16:54 +0000 (14:16 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Thu, 29 Jan 2026 09:27:54 +0000 (01:27 -0800)
commit6ca56813f4a589f536adceb42882855d91fb1125
treeaadf03695f1a05d142ee7d39eea2a54173b8d957
parentacf2a94ac4734962742398bed0cde156baf48244
apparmor: fix rlimit for posix cpu timers

Posix cpu timers requires an additional step beyond setting the rlimit.
Refactor the code so its clear when what code is setting the
limit and conditionally update the posix cpu timers when appropriate.

Fixes: baa73d9e478ff ("posix-timers: Make them configurable")
Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/resource.c