sky: Address boardid sepolicy

This commit is contained in:
Lostark13
2024-11-06 17:08:02 +05:30
parent e562fbb332
commit cb10f89d2b
3 changed files with 7 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ type audio_socket, file_type;
# Battery
type vendor_sysfs_qcom_battery, fs_type, sysfs_type;
# Boardid
type vendor_sysfs_boardid, fs_type, sysfs_type;
# Camera
type camera_persist_file, file_type, mlstrustedobject, vendor_persist_type;

View File

@@ -1,6 +1,9 @@
# Battery
genfscon sysfs /class/qcom-battery u:object_r:vendor_sysfs_battery_supply:s0
# Boardid
genfscon sysfs /firmware/devicetree/base/project-info/boardid u:object_r:vendor_sysfs_boardid:s0
# Extcon
genfscon sysfs /devices/platform/soc/soc:spf_core_platform/soc:spf_core_platform:lpass-cdc/wcd937x-codec/extcon u:object_r:sysfs_extcon:s0

View File

@@ -1,2 +1,3 @@
allow vendor_sensors vendor_sysfs_displayfeature:dir search;
allow vendor_sensors vendor_sysfs_boardid:file r_file_perms;