30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
From a7e6b82865350053269b0abab82889e18095358d Mon Sep 17 00:00:00 2001
|
|
From: Zdenek Pytela <zpytela@redhat.com>
|
|
Date: Mon, 30 Jan 2023 14:22:02 +0100
|
|
Subject: [PATCH] Allow systemd-resolved send a datagram to journald
|
|
|
|
Addresses the following AVC denial:
|
|
|
|
type=AVC msg=audit(1674810195.623:587): avc: denied { sendto } for pid=47442 comm="systemd-resolve" path="/run/systemd/journal/socket" scontext=system_u:system_r:systemd_resolved_t:s0 tcontext=system_u:system_r:syslogd_t:s0 tclass=unix_dgram_socket permissive=0
|
|
|
|
Resolves: rhbz#2165134
|
|
---
|
|
policy/modules/system/systemd.te | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te
|
|
index 7c625074c4..57c72d8347 100644
|
|
--- a/policy/modules/system/systemd.te
|
|
+++ b/policy/modules/system/systemd.te
|
|
@@ -1267,6 +1267,10 @@ optional_policy(`
|
|
systemd_dbus_chat_logind(systemd_resolved_t)
|
|
')
|
|
|
|
+optional_policy(`
|
|
+ logging_dgram_send(systemd_resolved_t)
|
|
+')
|
|
+
|
|
optional_policy(`
|
|
networkmanager_dbus_chat(systemd_resolved_t)
|
|
')
|