The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/Documentation/SELinux.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 If you want to use SELinux, chances are you will want
    2 to use the distro-provided policies, or install the
    3 latest reference policy release from
    4         http://oss.tresys.com/projects/refpolicy
    5 
    6 However, if you want to install a dummy policy for
    7 testing, you can do using 'mdp' provided under
    8 scripts/selinux.  Note that this requires the selinux
    9 userspace to be installed - in particular you will
   10 need checkpolicy to compile a kernel, and setfiles and
   11 fixfiles to label the filesystem.
   12 
   13         1. Compile the kernel with selinux enabled.
   14         2. Type 'make' to compile mdp.
   15         3. Make sure that you are not running with
   16            SELinux enabled and a real policy.  If
   17            you are, reboot with selinux disabled
   18            before continuing.
   19         4. Run install_policy.sh:
   20                 cd scripts/selinux
   21                 sh install_policy.sh
   22 
   23 Step 4 will create a new dummy policy valid for your
   24 kernel, with a single selinux user, role, and type.
   25 It will compile the policy, will set your SELINUXTYPE to
   26 dummy in /etc/selinux/config, install the compiled policy
   27 as 'dummy', and relabel your filesystem.

Cache object: 0480d8d2a42ec18e77636f3de5534056


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.