All of lore.kernel.org
 help / color / mirror / Atom feed
From: guido@trentalancia.net (Guido Trentalancia)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] init: update the initrc_t domain policy
Date: Fri, 30 Dec 2016 23:16:05 +0100 (CET)	[thread overview]
Message-ID: <219519059.71961.1483136166012.JavaMail.open-xchange@popper10.register.it> (raw)
In-Reply-To: <c08dd357-9db1-d005-6e80-4234dd52c87d@ieee.org>

Hello again.

> On the 30th of December 2016 at 20.30 Chris PeBenito <pebenito@ieee.org>
> wrote:
> 
> 
> On 12/29/16 17:49, Guido Trentalancia via refpolicy wrote:
> > Update the initrc_t domain policy in the init module with some
> > missing permissions.
> >
> > Signed-off-by: Guido Trentalancia <guido@trentalancia.net>
> > ---
> >  policy/modules/kernel/terminal.if |   21 +++++++++++++++++++++
> >  policy/modules/system/init.te     |   19 +++++++++++++++++--
> >  2 files changed, 38 insertions(+), 2 deletions(-)

[...]

> >  domain_kill_all_domains(initrc_t)
> >  domain_signal_all_domains(initrc_t)
> > @@ -496,6 +502,8 @@ files_exec_etc_files(initrc_t)
> >  files_read_usr_files(initrc_t)
> >  files_manage_urandom_seed(initrc_t)
> >  files_manage_generic_spool(initrc_t)
> > +# manage the restorecond lock file
> > +files_manage_generic_locks(initrc_t)
> 
> initrc_t can already delete all locks.  Why does it need to create locks?

The init scripts usually create the lock file upon starting up the service (and
delete it when stopping the service).

If you look at the script file restorecond.init from
policycoreutils/restorecond, you'll find the following:

touch /var/lock/subsys/restorecond

which implies files_manage_generic_locks(initrc_t).

I hope it helps...

Regards,

Guido

  parent reply	other threads:[~2016-12-30 22:16 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-29 22:49 [refpolicy] [PATCH] init: update the initrc_t domain policy Guido Trentalancia
2016-12-30 19:30 ` Chris PeBenito
2016-12-30 20:01   ` Dominick Grift
2016-12-30 20:09     ` Guido Trentalancia
2016-12-30 20:12       ` Dominick Grift
2016-12-30 20:19         ` Guido Trentalancia
2016-12-30 20:20           ` Dominick Grift
2016-12-30 20:50             ` Guido Trentalancia
2016-12-30 20:52               ` Dominick Grift
2016-12-30 21:06                 ` Guido Trentalancia
2016-12-30 21:09                   ` Dominick Grift
2016-12-30 20:15   ` Guido Trentalancia
2016-12-30 20:17     ` Dominick Grift
2016-12-30 20:53     ` Guido Trentalancia
2016-12-31 15:43       ` Chris PeBenito
2016-12-31 16:05         ` Guido Trentalancia
2016-12-31 16:22           ` Chris PeBenito
2016-12-31 16:28             ` Guido Trentalancia
2016-12-30 22:16   ` Guido Trentalancia [this message]
2016-12-30 22:28 ` [refpolicy] [PATCH v2] " 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=219519059.71961.1483136166012.JavaMail.open-xchange@popper10.register.it \
    --to=guido@trentalancia.net \
    --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.