]>
Commit | Line | Data |
---|---|---|
4ef75678 CP |
1 | Reference Policy has a requirement of checkpolicy 1.28. Red Hat |
2 | Enterprise Linux 4 and Fedora Core 4 RPMs are available on | |
3 | the Reference Policy download page at http://serefpolicy.sf.net, | |
4 | and can be installed thusly: | |
5 | ||
6 | Red Hat Enterprise Linux 4: | |
7 | ||
8 | rpm -i libsepol-1.11.7-1.i386.rpm | |
9 | rpm -U checkpolicy-1.28-4.i386.rpm | |
10 | ||
11 | Fedora Core 4: | |
12 | ||
13 | rpm -U libsepol-1.11.7-1.i386.rpm checkpolicy-1.28-4.i386.rpm | |
14 | ||
fedd3caf | 15 | To install Reference Policy sources into /etc/selinux/refpolicy/src/policy: |
337e4afa CP |
16 | |
17 | make install-src | |
18 | ||
fedd3caf CP |
19 | This will back up a pre-existing source policy to the |
20 | /etc/selinux/refpolicy/src/policy.bak directory. | |
21 | ||
c767b14c CP |
22 | If you do not have a modules.conf, one can be generated: |
23 | ||
24 | make conf | |
25 | ||
8e0ef1f9 CP |
26 | This will create a default modules.conf. Options for the policy |
27 | build process can be found in build.conf. After installing the policy sources, | |
c767b14c | 28 | the old Make targets have been maintained for the monolithic policy: |
337e4afa CP |
29 | |
30 | Local policy development: | |
31 | ||
32 | make policy | |
33 | ||
34 | Compile and install the policy: | |
35 | ||
36 | make install | |
37 | ||
38 | Compile, install, and load the policy: | |
39 | ||
40 | make load | |
41 | ||
42 | Filesystem labeling: | |
43 | ||
44 | make relabel | |
45 | make checklabels | |
46 | make restorelabels | |
fedd3caf CP |
47 | |
48 | See the README for more information on available make targets. |