diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-08-05 01:11:53 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-08-05 01:11:53 +0000 |
commit | 51faddec805b7436c2e34fd87c4fcb6b94cf6e82 (patch) | |
tree | 9002273727bcf14aa195cf32f0b79703dde027bc | |
parent | 6392cf47c7d6508b03297e1c1919f480be341217 (diff) | |
parent | a70e1ce9c0ca9bdb62d1c9246b50c3d83f84735f (diff) | |
download | pixel-sepolicy-51faddec805b7436c2e34fd87c4fcb6b94cf6e82.tar.gz |
Snap for 7611421 from a70e1ce9c0ca9bdb62d1c9246b50c3d83f84735f to sc-v2-release
Change-Id: If1ae0180cffcae148ce0603aed7a6a1e569bd8c0
-rw-r--r-- | debugpolicy/device.te | 1 | ||||
-rw-r--r-- | debugpolicy/file.te | 2 | ||||
-rw-r--r-- | debugpolicy/file_contexts | 2 | ||||
-rw-r--r-- | debugpolicy/genfs_contexts | 1 | ||||
-rw-r--r-- | debugpolicy/init_dpm.te | 11 |
5 files changed, 17 insertions, 0 deletions
diff --git a/debugpolicy/device.te b/debugpolicy/device.te new file mode 100644 index 0000000..c774e3b --- /dev/null +++ b/debugpolicy/device.te @@ -0,0 +1 @@ +type dpm_block_device, dev_type; diff --git a/debugpolicy/file.te b/debugpolicy/file.te new file mode 100644 index 0000000..604ba50 --- /dev/null +++ b/debugpolicy/file.te @@ -0,0 +1,2 @@ +# sysfs +type sysfs_dpm_variant, sysfs_type, fs_type; # dpm variant diff --git a/debugpolicy/file_contexts b/debugpolicy/file_contexts new file mode 100644 index 0000000..0f2aaa6 --- /dev/null +++ b/debugpolicy/file_contexts @@ -0,0 +1,2 @@ +/dev/block/by-name/dpm_[ab] u:object_r:dpm_block_device:s0 +/vendor/bin/hw/init_dpm\.sh u:object_r:init_dpm_exec:s0 diff --git a/debugpolicy/genfs_contexts b/debugpolicy/genfs_contexts new file mode 100644 index 0000000..d30809d --- /dev/null +++ b/debugpolicy/genfs_contexts @@ -0,0 +1 @@ +genfscon sysfs /firmware/devicetree/base/dpm/variant u:object_r:sysfs_dpm_variant:s0 diff --git a/debugpolicy/init_dpm.te b/debugpolicy/init_dpm.te new file mode 100644 index 0000000..b91c561 --- /dev/null +++ b/debugpolicy/init_dpm.te @@ -0,0 +1,11 @@ +type init_dpm, domain; +type init_dpm_exec, exec_type, vendor_file_type, file_type; + +init_daemon_domain(init_dpm) + +userdebug_or_eng(` +allow init_dpm vendor_toolbox_exec:file execute_no_trans; +allow init_dpm sysfs_dpm_variant:file r_file_perms; +allow init_dpm block_device:dir search; +allow init_dpm dpm_block_device:blk_file rw_file_perms; +') |