All of lore.kernel.org
 help / color / mirror / Atom feed
* [kernel-hardening] How to temporary change 'current' (task)
@ 2011-06-17  8:36 ` Vasiliy Kulikov
  0 siblings, 0 replies; 10+ messages in thread
From: Vasiliy Kulikov @ 2011-06-17  8:36 UTC (permalink / raw)
  To: linux-kernel, linux-security-module, Ingo Molnar, Peter Zijlstra,
	kernel-hardening

Hi,

I wonder whether there is a simple way to temporary switch 'current' to
another task and then switch it back with minimum side effects?  I need
it to call "reversed" ptrace_may_access() with swapped current and
target task.  Introducing ptrace_task_may_access_me() would produce too
much noise in LSM (it also needs reversed security_ptrace_access_check()),
which is too loud for my needs.

Specifically, I need it to filter taskstats and proc connector requests
for a restriction of getting other processes' information:

http://permalink.gmane.org/gmane.linux.kernel/1155354

As the check is handled in the context of the ptrace target process,
ptrace_may_access() doesn't fit my needs.

Thanks,

-- 
Vasiliy

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

end of thread, other threads:[~2011-06-17 10:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-17  8:36 [kernel-hardening] How to temporary change 'current' (task) Vasiliy Kulikov
2011-06-17  8:36 ` Vasiliy Kulikov
2011-06-17  8:59 ` [kernel-hardening] " Solar Designer
2011-06-17  9:25   ` Vasiliy Kulikov
2011-06-17 10:01     ` Vasiliy Kulikov
2011-06-17 10:11       ` Vasiliy Kulikov
2011-06-17  9:29 ` [kernel-hardening] " Peter Zijlstra
2011-06-17  9:29   ` Peter Zijlstra
2011-06-17  9:56   ` [kernel-hardening] " Vasiliy Kulikov
2011-06-17  9:56     ` Vasiliy Kulikov

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.