2011-08-01 12:54:59 +00:00
|
|
|
Reference Policy has the following build requirements:
|
2017-08-05 16:01:00 +00:00
|
|
|
* libsepol 2.7
|
2017-07-20 01:19:43 +00:00
|
|
|
* libsemanage 2.6
|
|
|
|
* checkpolicy 2.6
|
|
|
|
* policycoreutils 2.6
|
2014-11-10 18:05:29 +00:00
|
|
|
* Python >= 2.6
|
2011-08-01 12:54:59 +00:00
|
|
|
* GCC
|
2006-02-08 21:30:21 +00:00
|
|
|
|
2005-10-10 21:02:49 +00:00
|
|
|
To install Reference Policy sources into /etc/selinux/refpolicy/src/policy:
|
2005-06-15 15:34:44 +00:00
|
|
|
|
|
|
|
make install-src
|
|
|
|
|
2005-10-10 21:02:49 +00:00
|
|
|
This will back up a pre-existing source policy to the
|
|
|
|
/etc/selinux/refpolicy/src/policy.bak directory.
|
|
|
|
|
2005-11-22 22:07:12 +00:00
|
|
|
If you do not have a modules.conf, one can be generated:
|
|
|
|
|
|
|
|
make conf
|
|
|
|
|
2005-12-01 19:04:57 +00:00
|
|
|
This will create a default modules.conf. Options for the policy
|
|
|
|
build process can be found in build.conf. After installing the policy sources,
|
2005-11-22 22:07:12 +00:00
|
|
|
the old Make targets have been maintained for the monolithic policy:
|
2005-06-15 15:34:44 +00:00
|
|
|
|
|
|
|
Local policy development:
|
|
|
|
|
|
|
|
make policy
|
|
|
|
|
|
|
|
Compile and install the policy:
|
|
|
|
|
|
|
|
make install
|
|
|
|
|
|
|
|
Compile, install, and load the policy:
|
|
|
|
|
|
|
|
make load
|
|
|
|
|
|
|
|
Filesystem labeling:
|
|
|
|
|
|
|
|
make relabel
|
|
|
|
make checklabels
|
|
|
|
make restorelabels
|
2005-10-10 21:02:49 +00:00
|
|
|
|
|
|
|
See the README for more information on available make targets.
|