All of lore.kernel.org
 help / color / mirror / Atom feed
From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] Interfaces in refpolicy.
Date: Mon, 7 Jan 2013 10:09:01 -0500	[thread overview]
Message-ID: <50EAE50D.4070409@tresys.com> (raw)
In-Reply-To: <50EADFDB.5040507@redhat.com>

On 01/07/13 09:46, Daniel J Walsh wrote:
> We were have a side talk between Miroslav, Dominick and me about interfaces.
> 
> Dominick has merged lots of new policy from Fedora in to the contrib directory
> of refpolicy but he has been only including the interfaces that are actually
> used.  This has been the traditional way Chris has accepted interfaces into
> the upstream project.  (Other then _admin and _domtrans).  This is causing
> Miroslav problems merging in the lastest upstream back into Fedora, since
> Fedora has many interfaces defined that other domains are not currently using.
> 
> I believe that we should have a standard that each file type defined in a policy.
> 
> For example
> 
> getattr_dir
> read_dir
> getattr_file
> read_file
> rw_inherited_file
> manage_file

I thought that we had agreed that doing this was generally acceptable years ago?  That being said, I don't think these make sense for /all/ file types.  e.g. there should be no user_home_dir_t files.  Similarly, a different set would apply for device nodes.

> The current mechanism where we don't have a comprehensive list can cause two
> problems for policy writers.

If you want a pretty comprehensive list, the policy pattern macros would be a good place to start creating one, IMO.  We don't have to make corresponding interfaces of all of those, but they do have the correct access concepts and verbs to use in the interface names.

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

  reply	other threads:[~2013-01-07 15:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-07 14:46 [refpolicy] Interfaces in refpolicy Daniel J Walsh
2013-01-07 15:09 ` Christopher J. PeBenito [this message]
2013-01-07 16:25   ` Dominick Grift
2013-01-07 16:35     ` Daniel J Walsh

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=50EAE50D.4070409@tresys.com \
    --to=cpebenito@tresys.com \
    --cc=refpolicy@oss.tresys.com \
    /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.