Red Hat Bugzilla – Bug 472419
SELinux error messages on RHEL5 upon install
Last modified: 2009-02-04 11:04:35 EST
Description of problem:
When installing condor on a RHEL5 system with SELinux disabled, I see the following error messages:
libsepol.context_from_record: MLS is enabled, but no MLS context found
libsepol.context_from_record: could not create context structure
libsemanage.validate_handler: invalid context system_u:object_r:unconfined_execmem_exec_t specified for /usr/sbin/condor_startd [all files]
libsemanage.dbase_llist_iterate: could not iterate over records
/usr/sbin/semanage: Could not add file context for /usr/sbin/condor_startd
We should be able to install on a system without SELinux and not get errors.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
This is probably as simple as checking getenforce before issuing SELinux commands. However, if SELinux is later enabled it could be a problem.
Only setup SELinux context if SELinux is enabled
Fixed in 7.2.0-0.3
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.