Skip to contentSkip to conversation

services_hal.patch

refpolicy Daniel J Walsh 2 participants 3 messages Jun 9, 2009 – Jul 27, 2009

lore
Share & tools
lore
#1 lore raw
Quoted 7 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F11/services_hal.patch

Add policy for hal-dccm

Lots of new interfaces

Manages dos/fusefs files

Why?

Quoted 8 lines

Starts dhcpc

Interfacts with ppp and uses policykit

Hald acl gets and sets fixed disk attributes

Renamed hal_create_log() to hal_manage_log() to match up the permissions allowed.

########################################
## <summary>
+## Allo read/write to a hal unix datagram socket.
+## </summary>
+## <param name="domain">
+## <summary>
+## Domain allowed access.
+## </summary>
+## </param>
+#
+interface(hal_rw_dgram_sockets',
+ gen_require(`
+ type hald_t;
+ ')
+
+ dontaudit $1 hald_t:unix_dgram_socket { read write };
+')
+

Is this supposed to be allow or dontaudit? the interface name and implementation conflict.

Otherwise merged.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150
#2 lore raw
Quoted 10 lines · Christopher J. PeBenito
Quoted 7 lines · Daniel J Walsh

http://people.fedoraproject.org/~dwalsh/SELinux/F11/services_hal.patch

Add policy for hal-dccm

Lots of new interfaces

Manages dos/fusefs files

Why?

I would guess it opens files/directories for read/write. Perhaps some kind of config file.

Quoted 32 lines
Quoted 9 lines

Starts dhcpc

Interfacts with ppp and uses policykit

Hald acl gets and sets fixed disk attributes

Renamed hal_create_log() to hal_manage_log() to match up the permissions allowed.

########################################
## <summary>

(quoted diff) +16 -0
+##	Allo read/write	to a hal unix datagram socket.
+## </summary>
+## <param name="domain">
+##	<summary>
+##	Domain allowed access.
+##	</summary>
+## </param>
+#
+interface(`hal_rw_dgram_sockets',`
+	gen_require(`
+		type hald_t;
+	')
+
+	dontaudit $1 hald_t:unix_dgram_socket { read write };
+')
+
Quoted 3 lines

Is this supposed to be allow or dontaudit? the interface name and implementation conflict.

I would say it is supposed to be dontaudit, since it looks like a leak.

Quoted 2 lines

Otherwise merged.