All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Steve G <linux_4ever@yahoo.com>, SE Linux <selinux@tycho.nsa.gov>
Subject: Re: I am more worried about open then read and write, SELinux	needs open access checks.
Date: Thu, 24 Jan 2008 16:13:08 -0500	[thread overview]
Message-ID: <4798FF64.8060008@redhat.com> (raw)
In-Reply-To: <1201207418.21288.144.camel@moss-spartans.epoch.ncsc.mil>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stephen Smalley wrote:
> On Thu, 2008-01-24 at 10:48 -0800, Steve G wrote:
>>> I would like to propose that we add one or more avc's to deal with
>>> opening a file.  open or open_read open_write.  
>>
>> There are situations where apps should only do an open_append to make sure they don't erase anything. syslog, auditd, apache are a few apps that come to mind.
> 
> Just to clarify:
> - SELinux already distinguishes append vs. write (checks append
> permission if opened with O_APPEND and checks write if you later try to
> clear via fcntl).
> - I only expect us to add a single "open" permission to control whether
> a process can directly open a given file at all, not distinct
> "open_read", "open_write", "open_append" permissions.  The usual
> read/write/append permissions will still get checked, both at open time
> and upon inheritance/transfer (and rechecked on read/write if the
> process or file label has changed or the policy has changed), but those
> are separate checks.  The purpose of the new "open" check being proposed
> is to allow the policy writer to distinguish direct open of a file from
> inheriting it from another process.
> 
Correct, that is what I want.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkeY/2QACgkQrlYvE4MpobMjwACaAv192sC311cBCcjBb/GJtzXz
AK8AoKmX4LLWBlhz15N7FwCWdBn/4+7w
=jts1
-----END PGP SIGNATURE-----

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2008-01-24 21:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-24 18:48 I am more worried about open then read and write, SELinux needs open access checks Steve G
2008-01-24 20:35 ` Brett Lentz
2008-01-24 20:43 ` Stephen Smalley
2008-01-24 21:13   ` Daniel J Walsh [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-01-23 22:01 Daniel J Walsh
2008-01-24 13:08 ` Stephen Smalley
2008-01-24 13:33   ` Stephen Smalley
2008-01-24 14:59     ` 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=4798FF64.8060008@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=linux_4ever@yahoo.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.