SELinux is preventing "wsrep_sst_rsync" from executing "hostname" command

Solution Verified - Updated -

Issue

  • On systems executing MariaDB or MySQL Server in clustered environment, the following AVC is seen

    type=AVC msg=audit(...): avc:  denied  { getattr } for  pid=XXX comm="wsrep_sst_rsync" path="/usr/bin/hostname" dev="dm-0" ino=... scontext=system_u:system_r:mysqld_t:s0 
    

Environment

  • Red Hat Enterprise Linux 8 and 9.0
    • MariaDB
    • MySQL Server

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