SELinux AVC related to "connectto" with target context "kernel_t" is seen at boot
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 contextscontext
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.