From: sven.vermeulen@siphos.be (Sven Vermeulen)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 4/5] Introduce the tmpfiles_t domain
Date: Fri, 15 Aug 2014 11:39:31 +0200 [thread overview]
Message-ID: <20140815093931.GC5715@siphos.be> (raw)
In-Reply-To: <1408046012.8445.6.camel@x220.localdomain>
On Thu, Aug 14, 2014 at 09:53:32PM +0200, Dominick Grift wrote:
> On Thu, 2014-08-14 at 15:40 -0400, Christopher J. PeBenito wrote:
> > On 8/7/2014 2:05 PM, Sven Vermeulen wrote:
> > > +policy_module(tmpfiles, 1.0.0)
> > [...]
> > > +type tmpfiles_var_run_t;
> > > +files_pid_file(tmpfiles_var_run_t)
> >
> > Nothing really jumped out at me as being a problem, but since most
> > (all?) distributions have moved towards these files being in /run, I'd
> > prefer to get away from having "var_run" in the type names. Why don't
> > we go with something like tmpfiles_run_t or tmpfiles_pid_t?
> >
>
> In that policy tmpfiles is allowed to create chars with type device_t
>
> Also this is not tmpfiles, this is a shell script that mimics tmpfiles
I think that's a matter of looking at things. I see "tmpfiles" as the API
and functionality as described by freedesktop.org, and the main
implementation of it is systemd-tmpfiles, but other implementations exist as
well.
The reference policy has many examples of domains that are providing the
rules for multiple implementations.
> tmpfiles does not run setfiles, it uses libselinux
I'll happily put the Gentoo specifics inside an ifdef(`distro_gentoo',...)
block once I know which ones that would be.
Wkr,
Sven Vermeulen
next prev parent reply other threads:[~2014-08-15 9:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-07 18:05 [refpolicy] [PATCH 0/5] Supporting tmpfiles Sven Vermeulen
2014-08-07 18:05 ` [refpolicy] [PATCH 1/5] Introduce interface allowing relabeling from/to non-security file types Sven Vermeulen
2014-08-14 19:35 ` Christopher J. PeBenito
2014-08-15 9:31 ` Sven Vermeulen
2014-08-18 14:57 ` Christopher J. PeBenito
2014-08-07 18:05 ` [refpolicy] [PATCH 2/5] Introduce interface to relabel from/to pidfile associated types Sven Vermeulen
2014-08-07 18:05 ` [refpolicy] [PATCH 3/5] Introduce interface to manage all non-security-sensitive resource types Sven Vermeulen
2014-08-07 18:05 ` [refpolicy] [PATCH 4/5] Introduce the tmpfiles_t domain Sven Vermeulen
2014-08-14 19:40 ` Christopher J. PeBenito
2014-08-14 19:53 ` Dominick Grift
2014-08-15 9:39 ` Sven Vermeulen [this message]
2014-08-15 9:35 ` Sven Vermeulen
2014-08-15 15:30 ` Daniel J Walsh
2014-08-18 16:51 ` Christopher J. PeBenito
2014-08-07 18:05 ` [refpolicy] [PATCH 5/5] Give kmod access to tmpfiles Sven Vermeulen
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=20140815093931.GC5715@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.