aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-07-16 09:03:58 -0700
committerNick Kralevich <nnk@google.com>2013-07-16 09:03:58 -0700
commit59faed058de762f3920cd0a6219c68e5f16844bd (patch)
tree6939eac776a3b51718a50f5367f7e9999215161f
parent2637198f92d5d9c65262e42d78123d216889d546 (diff)
downloadsepolicy-59faed058de762f3920cd0a6219c68e5f16844bd.tar.gz
Allow apps to create listening ports
Bug: 9872463 Change-Id: I47eabeace3387afd24c0fd4bee70e77c0a3586d5
-rw-r--r--untrusted_app.te4
1 files changed, 2 insertions, 2 deletions
diff --git a/untrusted_app.te b/untrusted_app.te
index 5b03280..ca6fc54 100644
--- a/untrusted_app.te
+++ b/untrusted_app.te
@@ -28,9 +28,9 @@ allow untrusted_app sdcard_external:file create_file_perms;
allow untrusted_app asec_apk_file:dir { getattr };
allow untrusted_app asec_apk_file:file r_file_perms;
-# Create listening tcp/udp sockets
+# Create tcp/udp sockets
allow untrusted_app node_type:{ tcp_socket udp_socket } node_bind;
-allow untrusted_app self:{ tcp_socket udp_socket } create_socket_perms;
+allow untrusted_app self:{ tcp_socket udp_socket } { create_socket_perms accept listen };
# Allow the allocation and use of ptys
# Used by: https://play.google.com/store/apps/details?id=jackpal.androidterm