SELinux AVC related to "connectto" with target context "kernel_t" is seen at boot

Solution Verified - Updated -

Issue

  • At boot, browsing the audit log, an AVC related to connecting to a Unix socket labelled with context system_u:system_r:kernel_t is seen, usually related to logging

    # ausearch -m avc -ts boot | grep AVC
    type=AVC msg=audit(TIMESTAMP:ID): avc:  denied  { connectto } for  pid=PID comm="systemd-cat" path="/run/systemd/journal/stdout" scontext=system_u:system_r:radiusd_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=unix_stream_socket permissive=0
    

    In the example above, a program running as radiusd_t context wasn't able to send its output to systemd-journald's socket /run/systemd/journal/stdout.
    Source context scontext may vary.

Environment

  • Red Hat Enterprise Linux (RHEL) 7
    • selinux

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