Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

How to enable SELinux?

Help
h gw
2008-10-08
2013-05-09
  • h gw
    h gw
    2008-10-08

    Hi all,
    I install centos 5.1 on colinux 0.7.3,but i cannot enable SELinux successfully?Anybody give me a tip?
    thanks.

     
    • Henry N.
      Henry N.
      2008-10-09

      0.7.3 and before have not enabled SELinux in kernel.
      You can rebuild the kernel by following the steps from doc/building in source.

      Or: Use snapshot version 0.8.x, there SELinux is enabled.
      http://www.colinux.org/snapshots/

      You can verify this by running this under coLinux:
      $ zgrep "SELINUX" < /prco/config.gz
      CONFIG_SECURITY_SELINUX=y
      CONFIG_SECURITY_SELINUX_BOOTPARAM=y
      CONFIG_SECURITY_SELINUX_BOOTPARAM_VALUE=0
      CONFIG_SECURITY_SELINUX_DISABLE=y
      CONFIG_SECURITY_SELINUX_DEVELOP=y
      CONFIG_SECURITY_SELINUX_AVC_STATS=y
      CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
      # CONFIG_SECURITY_SELINUX_ENABLE_SECMARK_DEFAULT is not set
      # CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX is not set

      For coLinux 0.8.x you needs a boot parameter "selinux=1" to enable it at startup.

      Henry