Linux Security Modules development
 help / color / mirror / Atom feed
* [PATCH 0/1] yama: clean-up ptrace relations upon activating YAMA_SCOPE_NO_ATTACH
@ 2026-04-28 19:28 Ethan Ferguson
  2026-04-28 19:28 ` [PATCH 1/1] " Ethan Ferguson
  0 siblings, 1 reply; 2+ messages in thread
From: Ethan Ferguson @ 2026-04-28 19:28 UTC (permalink / raw)
  To: kees, paul, jmorris, serge
  Cc: linux-security-module, linux-kernel, Ethan Ferguson

Once yama's ptrace_scope gets set to it's max value (currently
YAMA_SCOPE_NO_ATTACH), all ptrace actions will forever be denied.
However, processes may still add ptrace relations, and the memory
to store these relations is still allocated, even though it is never
used again.

This patch cleans up all memory related to ptracer_relations upon
YAMA_SCOPE_NO_ATTACH, and additionally disallows further modification
of ptracer_relations from processes.

Ethan Ferguson (1):
  yama: clean-up ptrace relations upon activating YAMA_SCOPE_NO_ATTACH

 security/yama/yama_lsm.c | 23 ++++++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)

base-commit: cf2f06f7152d
-- 
2.43.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-28 19:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-28 19:28 [PATCH 0/1] yama: clean-up ptrace relations upon activating YAMA_SCOPE_NO_ATTACH Ethan Ferguson
2026-04-28 19:28 ` [PATCH 1/1] " Ethan Ferguson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox