SELinux is preventing systemd from unlink access on the file agent.pid

Solution Verified - Updated -

Issue

  • SELinux is preventing systemd from unlink access on the file agent.pid

  • Getting below avc denials for selinux

type=AVC msg=audit(1720289878.496:23971418): avc:  denied  { unlink } for  pid=1 comm="systemd" name="agent.pid" dev="sda3" ino=132452 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=file permissive=0

Environment

  • Red Hat Enterprise Linux 8

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