All of lore.kernel.org
 help / color / mirror / Atom feed
From: sven.vermeulen@siphos.be (Sven Vermeulen)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH v2 2/2] Update with new substitutions
Date: Thu, 9 Aug 2012 20:47:57 +0200	[thread overview]
Message-ID: <20120809184756.GC2643@siphos.be> (raw)
In-Reply-To: <50240255.1030004@trentalancia.com>

On Thu, Aug 09, 2012 at 08:32:53PM +0200, Guido Trentalancia wrote:
> > diff --git a/hadoop.fc b/hadoop.fc
> > index 633c470..8bc8a78 100644
> > --- a/hadoop.fc
> > +++ b/hadoop.fc
> > @@ -1,12 +1,5 @@
> >   /etc/hadoop.*							gen_context(system_u:object_r:hadoop_etc_t,s0)
> >
> > -/etc/init\.d/hadoop-(.*-)?datanode			--	gen_context(system_u:object_r:hadoop_datanode_initrc_exec_t,s0)
> > -/etc/init\.d/hadoop-(.*-)?jobtracker			--	gen_context(system_u:object_r:hadoop_jobtracker_initrc_exec_t,s0)
> > -/etc/init\.d/hadoop-(.*-)?namenode			--	gen_context(system_u:object_r:hadoop_namenode_initrc_exec_t,s0)
> > -/etc/init\.d/hadoop-(.*-)?secondarynamenode		--	gen_context(system_u:object_r:hadoop_secondarynamenode_initrc_exec_t,s0)
> > -/etc/init\.d/hadoop-(.*-)?tasktracker			--	gen_context(system_u:object_r:hadoop_tasktracker_initrc_exec_t,s0)
> > -/etc/init\.d/zookeeper					--	gen_context(system_u:object_r:zookeeper_server_initrc_exec_t,s0)
> > -
> 
> zookeeper would not appear anymore if you remove it completely instead 
> of translating it (look three lines further below).

You're right, I was a bit too zealous with deleting lines here.

> > diff --git a/tmpreaper.fc b/tmpreaper.fc
> > index fcc10e8..42ee122 100644
> > --- a/tmpreaper.fc
> > +++ b/tmpreaper.fc
> > @@ -1,6 +1,6 @@
> >   ifdef(`distro_debian',`
> > -/etc/init\.d/mountall-bootclean.sh --	gen_context(system_u:object_r:tmpreaper_exec_t,s0)
> > -/etc/init\.d/mountnfs-bootclean.sh --	gen_context(system_u:object_r:tmpreaper_exec_t,s0)
> > +/etc/rc\.d/init\.d/mountall-bootclean.sh --	gen_context(system_u:object_r:tmpreaper_exec_t,s0)
> > +/etc/rc\.d/init\.d/mountnfs-bootclean.sh --	gen_context(system_u:object_r:tmpreaper_exec_t,s0)
> 
> Personally speaking, I would not touch what's inside the ifdefs, unless 
> it's a very well known distribution that one is regularly and actively 
> using.

If I didn't, then the rules for tmpreaper_exec_t would never be hit, and in
this case the Debian distribution would fail to have a properly labeled
/etc/init.d/mountall-bootclean.sh script.

Wkr,
	Sven Vermeulen

  reply	other threads:[~2012-08-09 18:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-09 17:43 [refpolicy] [PATCH v2 0/2] Introduce substitution for /usr/local/lib* and /etc/init.d Sven Vermeulen
2012-08-09 17:44 ` [refpolicy] [PATCH v2 1/2] Use substititions for /usr/local/lib " Sven Vermeulen
2012-08-09 18:28   ` Guido Trentalancia
2012-08-09 18:44     ` Sven Vermeulen
2012-08-09 22:42       ` Guido Trentalancia
2012-08-10  5:30         ` Sven Vermeulen
2012-08-09 17:45 ` [refpolicy] [PATCH v2 2/2] Update with new substitutions Sven Vermeulen
2012-08-09 18:32   ` Guido Trentalancia
2012-08-09 18:47     ` Sven Vermeulen [this message]
2012-08-09 22:16       ` Guido Trentalancia

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=20120809184756.GC2643@siphos.be \
    --to=sven.vermeulen@siphos.be \
    --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.