How to prevent creation of SELinux contexts on files during kickstart installation?

Solution Unverified - Updated -

Issue

  • SELinux is disabled but security file contexts are not removed.
  • "selinux --disabled" is used in kickstart file which disables the SELinux on the installed system but files still have SELinux context e.g.:
# ll -Z /root/
-rw-------. root root system_u:object_r:admin_home_t:s0 anaconda-ks.cfg
-rw-r--r--. root root system_u:object_r:admin_home_t:s0 install.log
-rw-r--r--. root root system_u:object_r:admin_home_t:s0 install.log.syslog
  • SELinux contexts are not generated on the RHEL 6.2 system which was installed using same kickstart profile.

Environment

  • Red Hat Enterprise Linux 6.5
  • anaconda
  • PXE

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.