mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
refpolicy: unconfined - allow firewalld_t unconfined_t:dbus send_msg
Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com> Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
This commit is contained in:
parent
2681e5093f
commit
a3883736e2
|
|
@ -0,0 +1,55 @@
|
|||
From a0b77eed40994a02d577062025a0834fa4097a3b Mon Sep 17 00:00:00 2001
|
||||
From: Clayton Casciato <ccasciato@21sw.us>
|
||||
Date: Mon, 26 May 2025 18:35:20 -0600
|
||||
Subject: [PATCH] unconfined: allow firewalld_t unconfined_t:dbus send_msg
|
||||
|
||||
~# firewall-cmd --state
|
||||
ERROR:dbus.proxies:Introspect error on
|
||||
:1.3:/org/fedoraproject/FirewallD1: dbus.exceptions.DBusException:
|
||||
org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible
|
||||
causes include: the remote application did not send a reply, the
|
||||
message bus security policy blocked the reply, the reply timeout
|
||||
expired, or the network connection was broken.
|
||||
|
||||
--
|
||||
|
||||
type=USER_AVC pid=178 uid=messagebus auid=unset ses=unset
|
||||
subj=system_u:system_r:system_dbusd_t:s0
|
||||
msg='avc: denied { send_msg } for msgtype=method_return dest=:1.8
|
||||
spid=228 tpid=525 scontext=system_u:system_r:firewalld_t:s0
|
||||
tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
|
||||
tclass=dbus exe=/usr/bin/dbus-daemon sauid=messagebus hostname=? addr=?
|
||||
terminal=?'
|
||||
|
||||
--
|
||||
|
||||
Fedora:
|
||||
|
||||
$ sesearch -A --source firewalld_t --target unconfined_t --class dbus
|
||||
allow nsswitch_domain dbusd_unconfined:dbus send_msg;
|
||||
allow system_bus_type dbusd_unconfined:dbus send_msg;
|
||||
|
||||
Signed-off-by: Clayton Casciato <ccasciato@21sw.us>
|
||||
|
||||
Upstream-Status: Backport [https://github.com/SELinuxProject/refpolicy/commit/182ec344461e8e7f0c8cf9002688bffd35ae80f5]
|
||||
|
||||
Signed-off-by: Clayton Casciato <majortomtosourcecontrol@gmail.com>
|
||||
---
|
||||
policy/modules/system/unconfined.te | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/policy/modules/system/unconfined.te b/policy/modules/system/unconfined.te
|
||||
index a2f898551..b2db9f3ee 100644
|
||||
--- a/policy/modules/system/unconfined.te
|
||||
+++ b/policy/modules/system/unconfined.te
|
||||
@@ -108,6 +108,10 @@ optional_policy(`
|
||||
dpkg_run(unconfined_t, unconfined_r)
|
||||
')
|
||||
|
||||
+optional_policy(`
|
||||
+ firewalld_dbus_chat(unconfined_t)
|
||||
+')
|
||||
+
|
||||
optional_policy(`
|
||||
firstboot_run(unconfined_t, unconfined_r)
|
||||
')
|
||||
|
|
@ -86,6 +86,7 @@ SRC_URI += " \
|
|||
file://0068-fix-building-when-dbus-module-is-not-enabled.patch \
|
||||
file://0069-policy-modules-services-oddjob-allow-oddjob_mkhomedi.patch \
|
||||
file://0070-policy-modules-system-systemd-allow-systemd_generato.patch \
|
||||
file://0071-policy-modules-system-unconfined-allow-firewalld_t-u.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/refpolicy"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user