Skip to contentSkip to conversation

Let xserver chat to hal

refpolicy Martin Orr 2 participants 2 messages Jun 7, 2008 – Jun 9, 2008 SELinux security module

lore
Share & tools
lore

Martin Orr

author
#0 lore raw

I get messages like:

Mar  6 18:17:38 caligula dbus: avc:  denied  { send_msg } for msgtype=signal

interface=org.freedesktop.Hal.Device member=PropertyModified dest=org.freedesktop.DBus spid=3245 tpid=3325 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:system_r:xdm_xserver_t:s0-s0:c0.c1023 tclass=dbus

Attached patch lets xserver talk to hal by dbus.

Best wishes,

Signature · 1 line
Martin Orr

Written by: Martin Orr

Let xserver talk to hal by dbus

Mar  6 18:17:38 caligula dbus: avc:  denied  { send_msg } for msgtype=signal interface=org.freedesktop.Hal.Device member=PropertyModified dest=org.freedesktop.DBus spid=3245 tpid=3325 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:system_r:xdm_xserver_t:s0-s0:c0.c1023 tclass=dbus
Mar  6 19:21:41 caligula dbus: avc:  denied  { send_msg } for msgtype=method_call interface=org.freedesktop.Hal.Manager member=FindDeviceByCapability dest=org.freedesktop.Hal spid=3394 tpid=3314 scontext=system_u:system_r:xdm_xserver_t:s0-s0:c0.c1023 tcontext=system_u:system_r:hald_t:s0 tclass=dbus
modules/services/xserver.te renamed from modules/services/xserver.te.orig +4 -0
Index: policy/modules/services/xserver.te
===================================================================
@@ -467,6 +467,10 @@
 ')
 
 optional_policy(`
+	hal_dbus_chat(xdm_xserver_t)
+')
+
+optional_policy(`
 	resmgr_stream_connect(xdm_t)
 ')
 
#1 lore raw
Quoted 8 lines · Martin Orr

I get messages like:

Mar  6 18:17:38 caligula dbus: avc:  denied  { send_msg } for msgtype=signal

interface=org.freedesktop.Hal.Device member=PropertyModified dest=org.freedesktop.DBus spid=3245 tpid=3325 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:system_r:xdm_xserver_t:s0-s0:c0.c1023 tclass=dbus

Attached patch lets xserver talk to hal by dbus.

Merged. I also added a dbus_system_bus_client_template() call. I'm guessing you're running with unconfined, so that would be covered up.

Quoted 23 lines

plain text document attachment (117_xserver_hal_chat) Written by: Martin Orr

Let xserver talk to hal by dbus

Mar  6 18:17:38 caligula dbus: avc:  denied  { send_msg } for msgtype=signal interface=org.freedesktop.Hal.Device member=PropertyModified dest=org.freedesktop.DBus spid=3245 tpid=3325 scontext=system_u:system_r:hald_t:s0 tcontext=system_u:system_r:xdm_xserver_t:s0-s0:c0.c1023 tclass=dbus
Mar  6 19:21:41 caligula dbus: avc:  denied  { send_msg } for msgtype=method_call interface=org.freedesktop.Hal.Manager member=FindDeviceByCapability dest=org.freedesktop.Hal spid=3394 tpid=3314 scontext=system_u:system_r:xdm_xserver_t:s0-s0:c0.c1023 tcontext=system_u:system_r:hald_t:s0 tclass=dbus

Index: policy/modules/services/xserver.te
===================================================================

modules/services/xserver.te renamed from modules/services/xserver.te.orig +4 -0
@@ -467,6 +467,10 @@
 ')
 
 optional_policy(`
+	hal_dbus_chat(xdm_xserver_t)
+')
+
+optional_policy(`
 	resmgr_stream_connect(xdm_t)
 ')
 
Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.