Why do I get a "Security library initialization failed" message when I log on to a RHEL5 host?

The Security Enhanced Linux® (SELinux) feature checks whether programs have the necessary permissions to perform tasks that they are attempting to do. The required permissions must be specified in the SELinux policy. The default SELinux policy does not grant the permission "textrel_shlib_t" to EGO libraries such as $EGO_LIBDIR/sec_ego_default.so, which is required for EGO security libraries to load. Therefore, when SELinux is enabled in "enforcing" mode and the default SELinux policy is used, EGO security libraries fail to load.

Solution

Add the required permissions to the SELinux policy by entering the following commands:

chcon -t textrel_shlib_t $EGO_LIBDIR/sec_ego_default.so

ls --lcontext sec_ego_default.so

-rw-r--r-- 1 system_u:object_r:textrel_shlib_t root root 2142137 Dec 11 00:34 sec_ego_default.so

egosh user logon

user account: Admin

password:

Logged on successfully