aboutsummaryrefslogtreecommitdiffstats
path: root/dumpstate.te
diff options
context:
space:
mode:
authorStephen Smalley <sds@tycho.nsa.gov>2014-02-24 15:06:11 -0500
committerStephen Smalley <sds@tycho.nsa.gov>2014-02-25 12:41:23 -0500
commit1601132086b054adc70e7f8f38ed24574c90bc37 (patch)
treef56a30d82df78952b6cb537a5535e54baa9d40d2 /dumpstate.te
parent85708ec4f91fd70b215dc69e00b80e0e7a7d4686 (diff)
downloadandroid_external_sepolicy-1601132086b054adc70e7f8f38ed24574c90bc37.tar.gz
android_external_sepolicy-1601132086b054adc70e7f8f38ed24574c90bc37.tar.bz2
android_external_sepolicy-1601132086b054adc70e7f8f38ed24574c90bc37.zip
Clean up socket rules.
Replace * or any permission set containing create with create_socket_perms or create_stream_socket_perms. Add net_domain() to all domains using network sockets and delete rules already covered by domain.te or net.te. For netlink_route_socket, only nlmsg_write needs to be separately granted to specific domains that are permitted to modify the routing table. Clarification: read/write permissions are just ability to perform read/recv() or write/send() on the socket, whereas nlmsg_read/ nlmsg_write permissions control ability to observe or modify the underlying kernel state accessed via the socket. See security/selinux/nlmsgtab.c in the kernel for the mapping of netlink message types to nlmsg_read or nlmsg_write. Delete legacy rule for b/12061011. This change does not touch any rules where only read/write were allowed to a socket created by another domain (inherited across exec or received across socket or binder IPC). We may wish to rewrite some or all of those rules with the rw_socket_perms macro but that is a separate change. Change-Id: Ib0637ab86f6d388043eff928e5d96beb02e5450e Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'dumpstate.te')
-rw-r--r--dumpstate.te3
1 files changed, 0 insertions, 3 deletions
diff --git a/dumpstate.te b/dumpstate.te
index 8ecb6cc..749cc46 100644
--- a/dumpstate.te
+++ b/dumpstate.te
@@ -47,9 +47,6 @@ allow dumpstate { appdomain system_server }:process signal;
# This list comes from native_processes_to_dump in dumpstate/utils.c
allow dumpstate { drmserver mediaserver sdcardd surfaceflinger }:process signal;
-# The /system/bin/ip command needs this for routing table information.
-allow dumpstate self:netlink_route_socket { write getattr setopt };
-
# The vdc command needs to talk to the vold socket.
unix_socket_connect(dumpstate, vold, vold)