Initial redfin sepolicy

Bug: 139478768
Change-Id: I77fa87b91d0c6890b03f4225f366b86ef32d4798
This commit is contained in:
Alex Hong
2019-08-16 01:30:34 +08:00
parent 629747b16d
commit cebbf40601
5 changed files with 24 additions and 0 deletions

8
redfin-sepolicy.mk Normal file
View File

@@ -0,0 +1,8 @@
ARD_PLAT_PUBLIC_SEPOLICY_DIR := device/google/redfin-sepolicy/public
BOARD_PLAT_PRIVATE_SEPOLICY_DIR := device/google/redfin-sepolicy/private
# vendors
BOARD_SEPOLICY_DIRS += device/google/redfin-sepolicy/vendor/google
BOARD_SEPOLICY_DIRS += device/google/redfin-sepolicy/vendor/qcom/common
BOARD_SEPOLICY_DIRS += device/google/redfin-sepolicy/vendor/qcom/sm7250

2
vendor/google/file.te vendored Normal file
View File

@@ -0,0 +1,2 @@
type persist_default_file, file_type, vendor_persist_type;

1
vendor/qcom/common/attributes vendored Normal file
View File

@@ -0,0 +1 @@
attribute vendor_persist_type;

3
vendor/qcom/common/file.te vendored Normal file
View File

@@ -0,0 +1,3 @@
# used for /dsp files
type adsprpcd_file, file_type, mlstrustedobject, vendor_file_type;

10
vendor/qcom/common/file_contexts vendored Normal file
View File

@@ -0,0 +1,10 @@
###################################
# adsp files
#
/dsp(/.*)? u:object_r:adsprpcd_file:s0
###################################
# persist files
#
/persist u:object_r:persist_default_file:s0