All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] supporting RBACSEP in genhomedircon
@ 2016-09-23 14:28 Gary Tierney
  2016-09-23 14:28 ` [PATCH 1/1] genhomedircon: support policies using RBACSEP Gary Tierney
  2016-09-23 14:48 ` [PATCH 0/1] supporting RBACSEP in genhomedircon Dominick Grift
  0 siblings, 2 replies; 15+ messages in thread
From: Gary Tierney @ 2016-09-23 14:28 UTC (permalink / raw)
  To: selinux

This patch implements support for policies using RBACSEP in genhomedircon.  It
works by using an SELinux users "prefix" as the role in their homedir contexts.
It seems that genhomedircon has previously supported something similar, as it'll
currently replace the string "ROLE" with whatever a users prefix is.  However,
if using CIL we can't leverage this, since secilc will complain about the
semantics of an invalid role named "ROLE" in a filecon statement.

Since there's no way for a CIL policy to tell genhomedircon whether a role should
be replaced or not, a new "genhomedircon-rbacsep" option was added to
/etc/selinux/semanage.conf.

I'm not convinced that this is the best way to go about this.  Maybe an initial
role can be implicitly figured out using libsepol's API? Anyway, I've submitted
this to see if there's any better options for supporting RBACSEP in home dir
context generation.

There was some previous discussion about this here for reference:
http://oss.tresys.com/pipermail/refpolicy/2011-August/004417.html

Gary Tierney (1):
  genhomedircon: support policies using RBACSEP

 libsemanage/src/conf-parse.y    | 14 +++++++++++++-
 libsemanage/src/conf-scan.l     |  1 +
 libsemanage/src/genhomedircon.c | 30 +++++++++++++++++++++++++++++-
 libsemanage/src/semanage_conf.h |  1 +
 4 files changed, 44 insertions(+), 2 deletions(-)

-- 
2.4.11

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2016-09-29  1:06 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-23 14:28 [PATCH 0/1] supporting RBACSEP in genhomedircon Gary Tierney
2016-09-23 14:28 ` [PATCH 1/1] genhomedircon: support policies using RBACSEP Gary Tierney
2016-09-23 15:43   ` Gary Tierney
2016-09-26 13:41     ` Stephen Smalley
2016-09-23 19:36   ` Stephen Smalley
2016-09-23 20:51     ` Gary Tierney
2016-09-24  8:26     ` Dominick Grift
2016-09-26 14:20       ` Stephen Smalley
2016-09-26 14:34         ` Dominick Grift
2016-09-26 15:06           ` Dominick Grift
2016-09-27  7:44         ` Dominick Grift
2016-09-27 13:39           ` Stephen Smalley
2016-09-29  1:06             ` Gary Tierney
2016-09-27 22:19         ` Chris PeBenito
2016-09-23 14:48 ` [PATCH 0/1] supporting RBACSEP in genhomedircon Dominick Grift

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.