Red Hat Bugzilla – Bug 120211
SELinux FAQ - what is the relationship between policy and policy-sources packages?
Last modified: 2007-04-18 13:05:33 EDT
Description of change/FAQ addition. If a change, include the original
text first, then the changed text:
## begin quote from message
The policy package has the minimum necessary files defining the selinux
security policy ... as currently implemented, you always need this
installed. The policy-sources package contains all of the source
(files in /etc/security/selinux/src/*) for creating the files
where <ver> is the "version number" of the policy ... currently 16.
the recent policy package updates had/have a packaging problem and
"policy." instead of "policy.16" where screw things up pretty bad
can be fixed by simply renaming the file.]
If you have a simple system and do not plan to fool with the security
as currently defined by Red Hat, you need just the policy package. If
are going to customize your security policy and want to run setools,
Note: Installing/updating the policy package will load the new policy
it installs the files.
Note: Installing/updating the policy-sources package will rebuild the
policy.## file and the file_contexts file and loads them (makes them the
current policy in effect).
Note: If you have locally modified some of the policy sources, updating
policy and/or policy-sources can have interesting (but not particularly
desirable) effects. See
Version-Release of FAQ (found on
How does this write-up sound? I'm going to hold it for 1.0-6, I reckon.
Q:. What is the relationship between the policy and policy-sources
A:. The policy package is a requirement for a working SELinux
installation, while policy-sources is required if you want to
customize the default policy.
The policy package has the minimum files necessary for defining the
SELinux security policy. It is kept trimmed down in size to support a
minimal install footprint.
The policy-sources package contains the source definitions in
/etc/security/selinux/src that are required to create the files
/etc/security/selinux/policy.<version>. <version> is the version
number of the policy.
Choosing which packages to install is based on the type of
installation. If you are going to use only the default security policy
defined by the Fedora Core developers, you only need the policy
package. If you are to customize your security policy in any way, or
otherwise want to run setools, you need to install policy-sources.
Installing or updating the policy package loads the new policy after
it installs the files. Similarly, installing or updating the
policy-sources package rebuilds the policy.<version> file as well as
the file_contexts file, then loads them as the currently effective
I'm going to include this in 1.0-6; if there are any problems with my
write-up, please file a new bug report.