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: Wed, 06 Nov 2013 10:40:10 -0500 [thread overview]
Message-ID: <527A62DA.7060500@redhat.com> (raw)
In-Reply-To: <CAPzO=NwDTKKxx5KsT0X+R57vqPz4aDdrmoRV-f4DiowjQNi_2Q@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/06/2013 10:35 AM, Sven Vermeulen wrote:
> On Mon, Nov 4, 2013 at 3:42 PM, Daniel J Walsh <dwalsh@redhat.com> wrote:
>>> 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.
> [...]
>> And how do you handle the problem of removing policy when packages get
>> removed? What happens to the programs content?
>
> Good point. We don't handle that - if the package is removed and no other
> package exists that has a dependency on the SELinux policy, then the
> SELinux policy is also removed. Which invalidates the contexts of the
> files. I reckon that users who hit issues with that would relabel the
> files, which usually labels them to the "parent" type (such as var_t for
> things in /var/www then). But I have not received such case(s) for review
> yet.
>
> Wkr, Sven Vermeulen
>
These are the types of things that I have to worry about with a Huge installed
base. Just removing the apache.pp would instantaneously would invalidate all
content in /var/www, but also types in any other policy that was installed
that uses apache_content_template.
# grep apache_content_template *.te
apache.te:apache_content_template(httpd_sys)
apache.te:apache_content_template(httpd_user)
apcupsd.te: apache_content_template(apcupsd_cgi)
awstats.te:apache_content_template(awstats)
bugzilla.te:apache_content_template(bugzilla)
collectd.te:apache_content_template(collectd)
cvs.te: apache_content_template(cvs)
dirsrv-admin.te: apache_content_template(dirsrvadmin)
dspam.te: apache_content_template(dspam)
git.te:apache_content_template(git)
lightsquid.te: apache_content_template(lightsquid)
man2html.te: apache_content_template(man2html)
mediawiki.te: apache_content_template(mediawiki)
mojomojo.te: apache_content_template(mojomojo)
munin.te:apache_content_template(munin)
mythtv.te:apache_content_template(mythtv)
nagios.te: apache_content_template(nagios)
nut.te: apache_content_template(nutups_cgi)
openshift.te: apache_content_template(openshift)
prelude.te: apache_content_template(prewikka)
smokeping.te: apache_content_template(smokeping_cgi)
squid.te: apache_content_template(squid)
w3c.te:apache_content_template(w3c_validator)
webalizer.te: apache_content_template(webalizer)
zoneminder.te: apache_content_template(zoneminder)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlJ6YtoACgkQrlYvE4MpobPKGQCgkSWaIi99d8HtcxPV6M0DF/Wb
qwoAmwYmiREd5koNXu1RYI7TJDDnvPsG
=ZeKi
-----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-06 15:40 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
2013-11-06 15:35 ` Sven Vermeulen
2013-11-06 15:40 ` Daniel J Walsh [this message]
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=527A62DA.7060500@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.