Skip to contentSkip to conversation

external/sepolicy: system talk to rild via socket

PATCH In review Haiqing Jiang 2 participants 3 messages Jul 19, 2012 – Jul 23, 2012 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 external/sepolicy: system talk to rild via socket

---
 system.te |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
system.te +1 -0
index 5c34f81..1a25fd3 100644
@@ -107,6 +107,7 @@ unix_socket_connect(system, dbus, dbusd)
 unix_socket_connect(system, gps, gpsd)
 unix_socket_connect(system, bluetooth, bluetoothd)
 unix_socket_send(system, wpa, wpa)
+unix_socket_connect(system, rild, rild)
 
 # Communicate over a socket created by surfaceflinger.
 allow system surfaceflinger:unix_stream_socket { read write setopt };
Signature · 7 lines
1.7.0.4


--
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.
#1 lore raw
Quoted 9 lines · Haiqing Jiang
---
 system.te |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
system.te +0 -0
index 5c34f81..1a25fd3 100644

system.te unix_socket_connect(system, dbus, dbusd) · line 113

Quoted 7 lines
system.te +1 -0
@@ -107,6 +107,7 @@ unix_socket_connect(system, dbus, dbusd)
 unix_socket_connect(system, gps, gpsd)
 unix_socket_connect(system, bluetooth, bluetoothd)
 unix_socket_send(system, wpa, wpa)
+unix_socket_connect(system, rild, rild)
 
 # Communicate over a socket created by surfaceflinger.
 allow system surfaceflinger:unix_stream_socket { read write setopt };

Same as prior one.

Signature · 8 lines
Stephen Smalley
National Security Agency


--
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.
#2 lore raw

I find the denial is from "GpsLocationProvider" which is labeled with "system". And for somehow it requires socket connection.

Quoted 25 lines · Stephen Smalley
Quoted 9 lines · Haiqing Jiang
---
 system.te |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
system.te +0 -0
index 5c34f81..1a25fd3 100644

system.te unix_socket_connect(system, dbus, dbusd) · line 113

Quoted 7 lines
system.te +1 -0
@@ -107,6 +107,7 @@ unix_socket_connect(system, dbus, dbusd)
 unix_socket_connect(system, gps, gpsd)
 unix_socket_connect(system, bluetooth, bluetoothd)
 unix_socket_send(system, wpa, wpa)
+unix_socket_connect(system, rild, rild)
 
 # Communicate over a socket created by surfaceflinger.
 allow system surfaceflinger:unix_stream_socket { read write setopt };

Same as prior one.

--
Stephen Smalley
National Security Agency

Signature · 4 lines
-----------------------------------
Haiqing Jiang, PH.D student

Computer Science Department, North Carolina State University