[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090507093124.GA355@elte.hu>
Date: Thu, 7 May 2009 11:31:24 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Chris Wright <chrisw@...s-sol.org>
Cc: Oleg Nesterov <oleg@...hat.com>,
Roland McGrath <roland@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel@...r.kernel.org, Al Viro <viro@...IV.linux.org.uk>
Subject: Re: [RFC PATCH 3/3a] ptrace: add _ptrace_may_access()
* Ingo Molnar <mingo@...e.hu> wrote:
> The design around that code does not seem to be very consistent.
>
> One solution would be for the default "plain Linux" security
> module to have a stock ->ptrace_access_check() that does the
> current ptrace_may_access() check, and then procfs could be
> updated to use that callback - instead of calling into the ptrace
> core code directly.
hm, that's not a good idea, as we'd have an unnecessary indirect
call even in the common case where the higher-level ptrace checks
deny a request via -EPERM early on already.
So it's all designed fine and what we need is the rename plus the
elimination of the bool.
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists