modularize scd

Bug: 197914244
Test: boot with scd started
Change-Id: If2c033e9aaf33b47f2fe5db3507fac052dcaef1a
This commit is contained in:
Adam Shih
2021-08-27 11:16:47 +08:00
parent 2cdc065832
commit 8f611991f7
5 changed files with 9 additions and 11 deletions

5
gps/file.te Normal file
View File

@@ -0,0 +1,5 @@
type vendor_gps_file, file_type, data_file_type;
userdebug_or_eng(`
typeattribute vendor_gps_file mlstrustedobject;
')

4
gps/file_contexts Normal file
View File

@@ -0,0 +1,4 @@
# gnss/gps data/log files
/data/vendor/gps(/.*)? u:object_r:vendor_gps_file:s0
# vendor binaries
/vendor/bin/hw/scd u:object_r:scd_exec:s0

View File

@@ -105,10 +105,6 @@ type vendor_camera_tuning_file, vendor_file_type, file_type;
type vendor_camera_data_file, file_type, data_file_type;
# GPS
type vendor_gps_file, file_type, data_file_type;
userdebug_or_eng(`
typeattribute vendor_gps_file mlstrustedobject;
')
type sysfs_gps, sysfs_type, fs_type;
# Display

View File

@@ -114,19 +114,12 @@
# Exynos Daemon Exec
#
/(vendor|system/vendor)/bin/cbd u:object_r:cbd_exec:s0
/(vendor|system/vendor)/bin/hw/scd u:object_r:scd_exec:s0
/(vendor|system/vendor)/bin/hw/gpsd u:object_r:gpsd_exec:s0
/(vendor|system/vendor)/bin/hw/lhd u:object_r:lhd_exec:s0
/(vendor|system/vendor)/bin/hw/rild_exynos u:object_r:rild_exec:s0
/(vendor|system/vendor)/bin/rfsd u:object_r:rfsd_exec:s0
/(vendor|system/vendor)/bin/bipchmgr u:object_r:bipchmgr_exec:s0
#
# Exynos Data Files
#
# gnss/gps data/log files
/data/vendor/gps(/.*)? u:object_r:vendor_gps_file:s0
#
# Exynos Log Files
#