How to prevent creation of SELinux contexts on files during kickstart installation?
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, tools, and much more.