SELinux Security Issue - Oracle

Solution Verified - Updated -

Issue

  • Receiving SELinux errors after installing NetBackup and running the following commands:

    sudo chcon -t textrel_shlib_t /usr/openv/lib/*.so*
    
    for l in /usr/openv/lib/*.so* ; do echo $l:; sudo semanage fcontext -a -t textrel_shlib_t $l; done
    
  • We are getting the following errors:

    oracle homedir /opt/oracle or its parent directory conflicts with a defined context in /etc/selinux/targeted/contexts/files/file_contexts,/usr/sbin/genhomedircon will not create a new context. This usually indicates an incorrectly defined system account.  If it is a system account please make sure its login shell is /sbin/nologin.
    
  • This is a newly installed Oracle server and needs the home directory to point to /opt/oracle

Environment

  • Red Hat Enterprise Linux 5.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content