Skip to contentSkip to conversation

socket permissions to untrusted_app

PATCH Applied Haiqing Jiang 2 participants 2 messages Jul 27, 2012 – Jul 30, 2012 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 socket permissions to untrusted_app

---
 app.te |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
app.te +1 -1
index be0983f..41866d9 100644
@@ -105,7 +105,7 @@ unix_socket_connect(untrusted_app, dnsproxyd, netd)
 }
 # Bluetooth access.
 bool app_bluetooth false;
-if (app_bluetooth) {
+if (app_bluetooth or android_cts) {
 # No specific SELinux class for bluetooth sockets presently.
 allow untrusted_app self:socket *;
 }
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 3 lines · Haiqing Jiang
---
 app.te |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Thanks, applied. Future work: Extend SELinux kernel code and policy to distinguish a separate security class for bluetooth sockets.

Quoted 14 lines
app.te +1 -1
index be0983f..41866d9 100644
@@ -105,7 +105,7 @@ unix_socket_connect(untrusted_app, dnsproxyd, netd)
 }
 # Bluetooth access.
 bool app_bluetooth false;
-if (app_bluetooth) {
+if (app_bluetooth or android_cts) {
 # No specific SELinux class for bluetooth sockets presently.
 allow untrusted_app self:socket *;
 }
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.