sepolicy: Add rules for xcap

Change-Id: I19c1f971b08e8d08f9c44d33b8036a267eee1e99
This commit is contained in:
SamarV-121 2023-02-09 12:20:06 +05:30
parent 22b3052286
commit 8c706294c1
No known key found for this signature in database
GPG Key ID: EA4EF623926E2FAE
2 changed files with 9 additions and 0 deletions

View File

@ -686,6 +686,8 @@
/(vendor|system/vendor)/bin/fpsgo u:object_r:fpsgo_native_exec:s0
/(vendor|system/vendor)/bin/xgff_test u:object_r:xgff_test_native_exec:s0
/(vendor|system/vendor)/bin/xcap u:object_r:xcap_exec:s0
/(vendor|system/vendor)/bin/biosensord_nvram u:object_r:biosensord_nvram_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.bluetooth@1\.[0-9]-service-mediatek u:object_r:mtk_hal_bluetooth_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.gnss@2\.1-service-mediatek u:object_r:mtk_hal_gnss_exec:s0

7
basic/non_plat/xcap.te Normal file
View File

@ -0,0 +1,7 @@
type xcap, domain;
type xcap_exec, exec_type, file_type, vendor_file_type;
init_daemon_domain(xcap)
allow xcap ccci_device:chr_file rw_file_perms;
allow xcap self:capability sys_admin;