From 7c347cddcb54966ddab3e4b97b0b384c360f72da Mon Sep 17 00:00:00 2001
From: Chris PeBenito
This guide will walk you through the basics of creating a new reference policy module. This will also serve as an introduction to the basics concepts and philosophy of refpolicy.
+To install and use a targeted Reference Policy on a Fedora Core 4 system, see the
+switching guide.
diff --git a/www/html/menu.html b/www/html/menu.html
index b29fa1d9..4761b65d 100644
--- a/www/html/menu.html
+++ b/www/html/menu.html
@@ -1,9 +1,10 @@
- Reference Policy Home
This guide will walk you through switching to the targeted reference
policy on a Fedora system.
@@ -11,21 +11,34 @@
from Sourceforge. Download the policy, and unpack it to a temporary
directory. Then use the install-src make target to install the policy
sources.
-
+
+ The policy source is found in the
+ /etc/selinux/refpolicy/src/policy/ directory.
+ Use the example targeted modules configuration.
+
Near the top of the policy Makefile, the policy has a few build options.
The TYPE needs to be set to targeted, and the DISTRO option needs to be
- uncommented, and set to redhat. The Makefile is found in the
- /etc/selinux/refpolicy/src/policy/ directory.
+ uncommented and set to redhat.
+ Next, install the policy, application configuration files, and
+ file contexts.
+Getting Started
Creating A Module
- Status/Roadmap
- Contributing
+ Reference Policy Home
+ Status/Roadmap
+ Contributing
Documentation
- Getting Started
+ - Switch to Reference Policy
- Interface Reference
- Download
+ Download
diff --git a/www/html/switch.html b/www/html/switch.html
index b76caf6d..43a60134 100644
--- a/www/html/switch.html
+++ b/www/html/switch.html
@@ -1,4 +1,4 @@
-Switching to Reference Policy
+Switching to Targeted Reference Policy
-# tar -jxvf refpolicy-20050711.tar.bz2 -C /tmp
+# tar -jxvf refpolicy-xxxxxxxx.tar.bz2 -C /tmp
# cd /tmp/refpolicy
# make install-src
+
Configure the policy
+
+# cd /etc/selinux/refpolicy/src/policy
+# cp policy/modules.conf.targeted_example policy/modules.conf
+
+
########################################
#
@@ -65,13 +78,19 @@ MONOLITHIC=y
# Uncomment this to disable command echoing
#QUIET:=@
+
- Install the binary policy and application configuration files
+ Install the policy
+
-# cd /etc/selinux/refpolicy/src/policy
# make install
+
Change SELinux Configuration
@@ -79,6 +98,7 @@ MONOLITHIC=y
Modify the /etc/selinux/config file, and set SELINUXTYPE to refpolicy.
It should look similar to this:
# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: @@ -91,14 +111,17 @@ SELINUX=enforcing # strict - Full SELinux protection. SELINUXTYPE=refpolicy+
The system needs to be restarted with the new policy, and relabeled on booting.
+# touch /.autorelabel # shutdown -r now+