public inbox for gentoo-hardened@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-hardened] SELinux base policy r2 in hardened-dev overlay
@ 2011-08-19 20:51 Sven Vermeulen
  2011-08-19 21:14 ` Sven Vermeulen
  2011-08-21  1:08 ` Chris Richards
  0 siblings, 2 replies; 14+ messages in thread
From: Sven Vermeulen @ 2011-08-19 20:51 UTC (permalink / raw
  To: gentoo-hardened

Hi guys,

I have just pushed selinux-base-policy--2.20110726-r2 to the hardened-dev
overlay. There are not that many changes in it (although "not many" is
relative of course) but some were quite necessary to be pushed out already.
The main reason why I do it now and not wait until I've fixed the other bugs
that are still lingering, is because for -r3 I might need to make more
in-depth changes on how we support init scripts within SELinux. More on that
later...

First of all, the small list in changes:
- for all domains that we add ourselves (like gorg, pan, skype, mutt, ...) I
  didn't include the regular user support yet (stupid me), so that's fixed
  now
- nagios diskcheck plugin issue is fixed
- xfce4 file contexts are fixed
- userdomains can now use syslog
- portage has improved layman/emerge-webrsync support (you will need to
  "rlpkg layman portage" though)
- improved mutt domain definition (help from upstream)
- puppet fixes (a few of them)
- zabbix correction on context and support remote mysql support
- LDAPS support for nsswitch stuff
- update on courier-imap file contexts

There is also one change under the hood, which is the support for the
patchbundles. Up until now, the patchbundle was applied as one big bundle
(epatch ...tbz2) which made it difficult to debug patching issues. With r2,
the patches are applied one by one, so a failure in a patch immediately
gives a clear error in which patch (and where). It also shows the user the
list of patches being applied now - for those that like to watch epatch
work, that is ;-)

A second change is that the patches are now not only per-file fixes, but
structured in logical patchsets. These logical sets are a lot easier to send
upstream (and also mark as "approved upstream") and should make the
introduction of new upstream versions a lot easier to integrate (I had too
much time wasted due to manual patch transformations between 20101213 and
20110726).

BTW, we currently have 50 patchsets applied, 2 of them have been accepted
upstream (so we do not need to maintain those the moment a new refpolicy is
released), 7 of them are pending, the rest I still need to submit (but first
need to confirm that the issues have been resolved correctly).

Okay, but what is this "in-depth" change that I was talking about. Well,
SELinux policies support labeled init scripts. For instance,
"slapd_initrc_exec_t" which allows the init script to run in an init script
domain specific for slapd (splad_initrc_t). This allows for slapd-specific
allow statements (for instance PID file management) from within the init
script.

All fine, but Gentoo doesn't use that. We run all our scripts in initrc_t
instead. Why? Because we support "integrated run_init support", which allows
our users to just call "/etc/init.d/slapd start" instead of "run_init
/etc/init.d/slapd start". But this integrated run_init support automatically
transitions all scripts to initrc_t (and not slapd_initrc_t). And changing
this to support the named init scripts isn't straight forward (well, I hope
I eventually find a straight-forward method, but until now I didn't
succeed).

Yet we will eventually need to support this, because otherwise we need to
"open" the privileges on initrc_t towards all potential services. Not only
does that require lots of work, it also brings in patches in our policy that
upstream will never accept (and they're right not to accept it).

Hence I'll be working on that the upcoming days. 

Wkr,
	Sven Vermeulen



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

end of thread, other threads:[~2011-08-22 21:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-19 20:51 [gentoo-hardened] SELinux base policy r2 in hardened-dev overlay Sven Vermeulen
2011-08-19 21:14 ` Sven Vermeulen
2011-08-21  1:08 ` Chris Richards
2011-08-21 10:06   ` Sven Vermeulen
2011-08-21 11:39     ` Radosław Smogura
2011-08-21 14:18       ` Sven Vermeulen
2011-08-21 23:19         ` Mike Edenfield
2011-08-22 15:18           ` Sven Vermeulen
2011-08-22 17:11             ` Sven Vermeulen
2011-08-22 17:25               ` Matt Thode
2011-08-22 18:18                 ` Sven Vermeulen
2011-08-22 19:22                   ` Matt Thode
2011-08-22 21:00               ` Radosław Smogura
2011-08-22 21:05                 ` Sven Vermeulen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox