aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorJeff Vander Stoep2018-04-02 16:17:59 -0500
committerJeffrey Vander Stoep2018-04-03 08:56:58 -0500
commit0d1e52a50f1770bbdcae11f444570a86c3b1eeb1 (patch)
tree824455bb8f581c538cdd0fb87608c0d999fdc03c /public
parentf22c062c16a28b9cc28acb37cbc84a4f0acb0670 (diff)
downloadsystem-sepolicy-0d1e52a50f1770bbdcae11f444570a86c3b1eeb1.tar.gz
system-sepolicy-0d1e52a50f1770bbdcae11f444570a86c3b1eeb1.tar.xz
system-sepolicy-0d1e52a50f1770bbdcae11f444570a86c3b1eeb1.zip
Remove deprecated tagSocket() permissions
tagSocket() now results in netd performing these actions on behalf of the calling process. Remove direct access to: /dev/xt_qtaguid /proc/net/xt_qtaguid/ctrl Bug: 68774956 Test: -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AppSecurityTests -m CtsNativeNetTestCases Test: stream youtube, browse chrome Test: go/manual-ab-ota Change-Id: I6a044f304c3ec4e7c6043aebeb1ae63c9c5a0beb
Diffstat (limited to 'public')
-rw-r--r--public/mediaserver.te4
-rw-r--r--public/update_engine.te5
2 files changed, 0 insertions, 9 deletions
diff --git a/public/mediaserver.te b/public/mediaserver.te
index f0c94edc..b20835a2 100644
--- a/public/mediaserver.te
+++ b/public/mediaserver.te
@@ -60,10 +60,6 @@ r_dir_file(mediaserver, media_rw_data_file)
60# Grant access to read files on appfuse. 60# Grant access to read files on appfuse.
61allow mediaserver app_fuse_file:file { read getattr }; 61allow mediaserver app_fuse_file:file { read getattr };
62 62
63# Read/[write] to /proc/net/xt_qtaguid/ctrl and /dev/xt_qtaguid
64allow mediaserver qtaguid_proc:file rw_file_perms;
65allow mediaserver qtaguid_device:chr_file r_file_perms;
66
67# Needed on some devices for playing DRM protected content, 63# Needed on some devices for playing DRM protected content,
68# but seems expected and appropriate for all devices. 64# but seems expected and appropriate for all devices.
69unix_socket_connect(mediaserver, drmserver, drmserver) 65unix_socket_connect(mediaserver, drmserver, drmserver)
diff --git a/public/update_engine.te b/public/update_engine.te
index 6e97aa91..00f70bc4 100644
--- a/public/update_engine.te
+++ b/public/update_engine.te
@@ -4,11 +4,6 @@ type update_engine_exec, exec_type, file_type;
4 4
5net_domain(update_engine); 5net_domain(update_engine);
6 6
7# Read/[write] to /proc/net/xt_qtaguid/ctrl and /dev/xt_qtaguid to tag network
8# sockets.
9allow update_engine qtaguid_proc:file rw_file_perms;
10allow update_engine qtaguid_device:chr_file r_file_perms;
11
12# Following permissions are needed for update_engine. 7# Following permissions are needed for update_engine.
13allow update_engine self:process { setsched }; 8allow update_engine self:process { setsched };
14allow update_engine self:global_capability_class_set { fowner sys_admin }; 9allow update_engine self:global_capability_class_set { fowner sys_admin };