All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Antill <james.antill@redhat.com>
To: Eric Paris <eparis@redhat.com>
Cc: "Christopher J. PeBenito" <cpebenito@tresys.com>,
	selinux <selinux@tycho.nsa.gov>,
	sds@tycho.nsa.gov, jmorris@namei.org,
	Paul Moore <paul.moore@hp.com>
Subject: Re: [PATCH -v2] SELinux: create new open permission
Date: Thu, 28 Feb 2008 15:32:08 -0500	[thread overview]
Message-ID: <1204230728.11268.261.camel@code.and.org> (raw)
In-Reply-To: <1204225233.3206.120.camel@localhost.localdomain>

[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]


On Thu, 2008-02-28 at 14:00 -0500, Eric Paris wrote:
> On Thu, 2008-02-28 at 13:50 -0500, Christopher J. PeBenito wrote:
> > On Thu, 2008-02-28 at 12:58 -0500, Eric Paris wrote:
> > > Adds a new open permission inside SELinux when 'opening' a file.  The
> > > idea is that opening a file and reading/writing to that file are not the
> > > same thing.  Its different if a program had its stdout redirected
> > > to /tmp/output than if the program tried to directly open /tmp/output.
> > > This should allow policy writers to more liberally give read/write
> > > permissions across the policy while still blocking many design and
> > > programing flaws SELinux is so good at catching today.
> > > 
> > > Signed-off-by: Eric Paris <eparis@redhat.com>
> > > 
> > 
> > What does open on a dir mean?  Isn't that the same as the read perm?
> 
> Admittedly there is very little distinction and I don't know the
> usefulness, but it is possible for a process to pass an open fd to a
> directory so I saw little reason to exclude it.

 Also we have the *at() and fchdir() calls, so this distinction (between
open and read on dirs) is useful.

-- 
James Antill <james.antill@redhat.com>
Red Hat

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2008-02-28 20:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-28 17:58 [PATCH -v2] SELinux: create new open permission Eric Paris
2008-02-28 18:30 ` Paul Moore
2008-02-28 18:50 ` Christopher J. PeBenito
2008-02-28 19:00   ` Eric Paris
2008-02-28 20:32     ` James Antill [this message]
2008-02-29 12:37       ` Russell Coker
2008-02-29 13:00         ` Stephen Smalley
2008-02-28 19:04   ` Stephen Smalley
2008-02-28 20:50 ` Stephen Smalley
2008-02-28 23:05 ` James Morris

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=1204230728.11268.261.camel@code.and.org \
    --to=james.antill@redhat.com \
    --cc=cpebenito@tresys.com \
    --cc=eparis@redhat.com \
    --cc=jmorris@namei.org \
    --cc=paul.moore@hp.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /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 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.