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

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks