SELinux in Red Hat Satellite 6 is preventing /usr/bin/ruby from read access on the file /var/log/foreman/production.log

Solution Verified - Updated -

Issue

  • SELinux is preventing /usr/bin/ruby from read access on the file /var/log/foreman/production.log with below alerts.

    type=AVC msg=audit(1681335342.107:9960308): avc:  denied  { read } for  pid=219395 
    comm=70756D612073727620747020303033 path="/var/log/foreman/production.log" dev="dm-5" ino=16797774 
    scontext=system_u:system_r:foreman_rails_t:s0 tcontext=system_u:object_r:foreman_log_t:s0 
    tclass=file permissive=0
    

Environment

  • Red Hat Satellite 6
  • SELinux Enforcing

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