linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: Chris Wright <chrisw@sous-sol.org>
Cc: casey@schaufler-ca.com,
	lsm <linux-security-module@vger.kernel.org>,
	James Morris <jmorris@namei.org>,
	Eric Paris <eparis@parisplace.org>,
	lkml <linux-kernel@vger.kernel.org>
Subject: Re: [RFC][PATCH] security:  split ptrace checking in proc
Date: Wed, 14 May 2008 11:50:16 -0400	[thread overview]
Message-ID: <1210780216.28282.4.camel@moss-spartans.epoch.ncsc.mil> (raw)
In-Reply-To: <20080514152817.GC17453@sequoia.sous-sol.org>


On Wed, 2008-05-14 at 08:28 -0700, Chris Wright wrote:
> * Stephen Smalley (sds@tycho.nsa.gov) wrote:
> > On Wed, 2008-05-14 at 02:15 -0700, Chris Wright wrote:
> > > It is slightly ad-hoc.  Is it just the audit messages that you described
> > > that made you pick environ and fd, or was there more specific (threat
> > > based) reasoning?  Would /proc/pid/fd/ + genfs + e.g. anonfd be a little
> > > wider than just readstate?
> > 
> > Well, it is being driven by experience with what applications try to
> > access w/o requiring full ptrace access, but also by a threat-based
> > reasoning that it is less dangerous to grant limited read access to
> > parts of the process state than to grant complete read access to its
> > entire memory image or full control of the target process.
> > 
> > Not entirely sure what you mean by the latter question.
> 
> fd/ access gives a view in the ->files, which could include rather
> internal bits like pipes, sockets, or anonfd descriptors -- things w/out
> external handles.  That view includes ability to open the fd (similar
> to dup()) and use it (granted subject to further security checks, but
> they may be quite generic at that point).

What do you mean by "generic" in the above?  Just the fact that there
wouldn't be any distinction between such access and access to a
descriptor received explicitly via local IPC from the target task?

Ok, so perhaps the only distinction that makes sense is read vs.
write/control, with all checks within proc except mem_write using the
former and ptrace_attach and mem_write using the latter?

-- 
Stephen Smalley
National Security Agency


  reply	other threads:[~2008-05-14 15:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-12 12:39 [RFC][PATCH] security: split ptrace checking in proc Stephen Smalley
2008-05-12 14:06 ` Casey Schaufler
2008-05-12 15:16   ` Stephen Smalley
2008-05-13 14:01   ` Stephen Smalley
2008-05-14  9:15     ` Chris Wright
2008-05-14 11:03       ` Stephen Smalley
2008-05-14 15:28         ` Chris Wright
2008-05-14 15:50           ` Stephen Smalley [this message]
2008-05-14 16:58             ` Chris Wright

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1210780216.28282.4.camel@moss-spartans.epoch.ncsc.mil \
    --to=sds@tycho.nsa.gov \
    --cc=casey@schaufler-ca.com \
    --cc=chrisw@sous-sol.org \
    --cc=eparis@parisplace.org \
    --cc=jmorris@namei.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).