SELinux Archive on
 help / color / Atom feed
From: Stephen Smalley <>
To: Richard Haines <>,
Subject: Re: [RFC PATCH] selinux-testsuite: Add TUN/TAP driver tests
Date: Mon, 2 Dec 2019 09:20:04 -0500
Message-ID: <> (raw)
In-Reply-To: <>

On 11/28/19 7:53 AM, Richard Haines wrote:
> I'll change this (I try to avoid interfaces in tests as you need to
> lookup what they really contain and it may be more than you want, plus
> just plain allow rules are much clearer (but that's just me))

I'd agree if the interface is a poor match / overly broad but I think in 
this case it works well.  I am sympathetic to the view that refpolicy 
interfaces are harder to use than raw policy rules (hence the almost 
complete lack of interfaces aside from common macros in the Android 
policy), but the one advantage they should carry is greater portability 
across refpolicy versions since they should automatically pick up 
changes in the base policy (e.g. if a type is renamed or split or 
coalesced, if a new permission besides the one being tested is 
introduced and needed for the abstract operation, etc).  And if/when we 
transition refpolicy to a truly higher level policy language on top of 
CIL, then I would anticipate them providing greater benefits as first 
class abstractions rather than mere m4 macros. But I guess only time 
will tell...

      reply index

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-27  9:47 Richard Haines
2019-11-27 14:59 ` Stephen Smalley
2019-11-28 12:53   ` Richard Haines
2019-12-02 14:20     ` Stephen Smalley [this message]

Reply instructions:

You may reply publically 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:

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

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

SELinux Archive on

Archives are clonable:
	git clone --mirror selinux/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 selinux selinux/ \
	public-inbox-index selinux

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone