From fae580c5ce2762b5ecae4183aefe7a31e78070c8 Mon Sep 17 00:00:00 2001 From: Ryan Ki Sing Chung Date: Tue, 4 Oct 2022 17:33:50 +0000 Subject: [PATCH] Revert "CastAuth: SELinux rules for the MediaDrm plugin" This reverts commit c579440a1f924577bc2cd33e80311211b0db5bdf. Reason for revert: Broke continuous build Bug: 250900568 Change-Id: I69982e605c645373c38040d4b8527180a4efcecc --- vendor/file.te | 3 --- vendor/file_contexts | 4 ---- vendor/hal_drm_cast.te | 10 ---------- vendor/service_contexts | 2 -- 4 files changed, 19 deletions(-) delete mode 100644 vendor/hal_drm_cast.te delete mode 100644 vendor/service_contexts diff --git a/vendor/file.te b/vendor/file.te index 32ab75b..0b57fda 100644 --- a/vendor/file.te +++ b/vendor/file.te @@ -1,5 +1,2 @@ #Pogo USB control & status type sysfs_pogo_usb, sysfs_type, fs_type; - -# Cast device certificate -type device_cert_file, file_type, vendor_persist_type; diff --git a/vendor/file_contexts b/vendor/file_contexts index 792f30a..cd84223 100644 --- a/vendor/file_contexts +++ b/vendor/file_contexts @@ -9,7 +9,3 @@ # Privacy LED /vendor/bin/hw/android\.hardware\.lights-service\.tangorpro u:object_r:hal_light_default_exec:s0 - -# Cast Factory Credentials -/vendor/bin/hw/android\.hardware\.drm-service\.castkey u:object_r:hal_drm_cast_exec:s0 -/mnt/vendor/persist/nest/cast_auth\.crt u:object_r:device_cert_file:s0 diff --git a/vendor/hal_drm_cast.te b/vendor/hal_drm_cast.te deleted file mode 100644 index 8ff3aee..0000000 --- a/vendor/hal_drm_cast.te +++ /dev/null @@ -1,10 +0,0 @@ -type hal_drm_cast, domain; -type hal_drm_cast_exec, exec_type, vendor_file_type, file_type; - -init_daemon_domain(hal_drm_cast) -hal_server_domain(hal_drm_cast, hal_drm) - -allow hal_drm_cast mnt_vendor_file:dir search; -allow hal_drm_cast persist_file:dir search; -allow hal_drm_cast device_cert_file:file r_file_perms; -neverallow { domain -init -vendor_init -hal_drm_cast } device_cert_file:file no_rw_file_perms; diff --git a/vendor/service_contexts b/vendor/service_contexts deleted file mode 100644 index f93a0e0..0000000 --- a/vendor/service_contexts +++ /dev/null @@ -1,2 +0,0 @@ -# Cast Factory Credentials -android.hardware.drm.IDrmFactory/castkey u:object_r:hal_drm_service:s0