From cfc625d14a29c75246d8b04b4ad1139d43ba064a Mon Sep 17 00:00:00 2001 From: Tom Cherry <tomcherry@google.com> Date: Tue, 11 Apr 2017 14:27:41 -0700 Subject: [PATCH] remove /dev/log This was marked deprecated in 2014 and removed in 2015, let's remove the sepolicy now too. (Originally submitted in commit: 8c60f74dcc045b0566bc7b9bc64cba49bddba1b3) Bug: 38242876 Test: Builds and boots. Change-Id: I4caa0dbf77956fcbc61a07897242b951c275b502 --- prebuilts/api/26.0/26.0.cil | 3 +++ private/file_contexts | 1 - public/device.te | 1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/prebuilts/api/26.0/26.0.cil b/prebuilts/api/26.0/26.0.cil index 4e35ce805..ec2ee2eb8 100644 --- a/prebuilts/api/26.0/26.0.cil +++ b/prebuilts/api/26.0/26.0.cil @@ -1,3 +1,6 @@ +;; types removed from current policy +(type log_device) + (typeattributeset accessibility_service_26_0 (accessibility_service)) (typeattributeset account_service_26_0 (account_service)) (typeattributeset activity_service_26_0 (activity_service)) diff --git a/private/file_contexts b/private/file_contexts index 85080b567..5e1209f6a 100644 --- a/private/file_contexts +++ b/private/file_contexts @@ -94,7 +94,6 @@ /dev/ion u:object_r:ion_device:s0 /dev/keychord u:object_r:keychord_device:s0 /dev/kmem u:object_r:kmem_device:s0 -/dev/log(/.*)? u:object_r:log_device:s0 /dev/loop-control u:object_r:loop_control_device:s0 /dev/mem u:object_r:kmem_device:s0 /dev/modem.* u:object_r:radio_device:s0 diff --git a/public/device.te b/public/device.te index 9fedc184c..a5edcc13c 100644 --- a/public/device.te +++ b/public/device.te @@ -31,7 +31,6 @@ type hw_random_device, dev_type; type input_device, dev_type; type kmem_device, dev_type; type port_device, dev_type; -type log_device, dev_type, mlstrustedobject; type mtd_device, dev_type; type mtp_device, dev_type, mlstrustedobject; type nfc_device, dev_type; -- GitLab