From: Daniel J Walsh <dwalsh@redhat.com>
To: Sven Vermeulen <sven.vermeulen@siphos.be>
Cc: Stephen Smalley <sds@tycho.nsa.gov>,
Joshua Brindle <jbrindle@tresys.com>,
SELinux <selinux@tycho.nsa.gov>
Subject: Re: Been looking at further shrinkage of the SELinux footprint on Linux.
Date: Mon, 04 Nov 2013 09:42:34 -0500 [thread overview]
Message-ID: <5277B25A.7030105@redhat.com> (raw)
In-Reply-To: <CAPzO=NyM2K5zb3DemGOxCFVU3dwuFDjo23AgtxS=oSwxrFdDxA@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/02/2013 12:42 PM, Sven Vermeulen wrote:
> On Wed, Oct 30, 2013 at 9:36 PM, Daniel J Walsh <dwalsh@redhat.com> wrote:
> [...]
>>> On 10/30/2013 03:31 PM, Daniel J Walsh wrote:
>>>> We are trying to shrink out cloud image as small as possible. One
>>>> idea was to shrink SELinux Policy footprint by adding compression to
>>>> it.
> [...]
>>> Personally, I'd much rather see work done on shrinking the actual
>>> policy size in Fedora rather than just compressing it. Both by
>>> reducing the overall size of refpolicy through coalescing similar
>>> domains/types and by making better use of the work that has already
>>> been done to support putting policy modules into rpms and only
>>> installing what actually get used.
> [...]
>> Well we have done some work on combining like domains, see antivirus and
>> spamassassin, but this is a lot of work which no one has time for.
>>
>> I would love to see the mailserver and mailclients domains combined.
>>
>> If people want to suggest or more importantly submit patches to combine
>> other domains, I am all for it.
>>
>> Problems with shipping policy within rpm still exists. although we (Red
>> Hat) are at least moving toward layered products shipping their own
>> policy. openstack-selinux, openshift-selinux, gluster-selinux. This is
>> more for them updating quicker then RHEL.
>
> In Gentoo, we try to only install the SELinux policies related to the
> package that is installed. So if a system does not have a web server, no
> httpd policies are loaded. This works pretty well. My workstation (which is
> where I do all my SELinux policy development on) has 100 policy modules
> loaded; my servers usually have around 50 to 60 modules loaded. That makes
> running things like "semodule -B" rather smooth. Not really fast, but one
> doesn't need to switch to another thing to do while waiting (4 seconds on a
> VM I'm currently playing with).
>
> When updates occur only on a module's .te file, it could even be
> distributed towards the users easily (no need to do a full policy refresh),
> although I usually wait and make a full policy release.
>
> It probably doesn't take long for Fedora/RedHat to find out which packages
> need which SELinux policy modules. A quick way to find them is to parse the
> RPM file list and check the file contexts of the SELinux policy tree for
> matches.
>
>> For every apache bug in policy, do we want to wait for an update apache
>> package, or do we ship lots more packages.
>
> I'd go for the latter. Put the policies in their own RPMs.
>
> Wkr, Sven Vermeulen
>
> -- This message was distributed to subscribers of the selinux mailing
> list. If you no longer wish to subscribe, send mail to
> majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes
> as the message.
>
And how do you handle the problem of removing policy when packages get
removed? What happens to the programs content?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlJ3sloACgkQrlYvE4MpobN2vQCg5mjJMYrd+AlXec2uTlxIAPuq
bwIAoIOq4f6eU59dwtjO2s+aXZEmbqC8
=zEME
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2013-11-04 14:42 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-30 19:31 Been looking at further shrinkage of the SELinux footprint on Linux Daniel J Walsh
2013-10-30 19:42 ` Joshua Brindle
2013-10-30 20:14 ` Stephen Smalley
2013-10-30 20:36 ` Daniel J Walsh
2013-10-30 20:43 ` Stephen Smalley
2013-10-30 20:47 ` Stephen Smalley
2013-10-31 12:43 ` Steve Lawrence
2013-10-31 12:56 ` Stephen Smalley
2013-10-31 18:52 ` Daniel J Walsh
2013-11-06 23:34 ` Timothée Ravier
2013-10-31 18:48 ` Daniel J Walsh
2013-11-02 16:42 ` Sven Vermeulen
2013-11-02 18:09 ` Casey Schaufler
2013-11-02 21:18 ` Joshua Brindle
2013-11-04 14:42 ` Daniel J Walsh [this message]
2013-11-06 15:35 ` Sven Vermeulen
2013-11-06 15:40 ` Daniel J Walsh
2013-10-30 22:01 ` Colin Walters
2013-10-31 11:30 ` Stephen Smalley
2013-10-30 23:54 ` Colin Walters
2013-10-31 18:27 ` Daniel J Walsh
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=5277B25A.7030105@redhat.com \
--to=dwalsh@redhat.com \
--cc=jbrindle@tresys.com \
--cc=sds@tycho.nsa.gov \
--cc=selinux@tycho.nsa.gov \
--cc=sven.vermeulen@siphos.be \
/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.