sm8350-common: sepolicy: Fix labelling of project_info

There seems to be a race condition somewhere that prevents
it to be properly labelled, so move to genfs.

Change-Id: Ie2d1deeb19a871eb0b9f5120a92432fda658d725
This commit is contained in:
Bruno Martins 2021-05-29 11:35:26 +01:00
parent d202951a85
commit 051af641b8
2 changed files with 1 additions and 1 deletions

View file

@ -66,7 +66,6 @@
/sys/module/fuse(/.*)? u:object_r:sysfs_fuse:s0
/sys/module/proc(/.*)? u:object_r:sysfs_dbg:s0
/sys/module/tpd(/.*)? u:object_r:sysfs_tpd:s0
/sys/project_info(/.*)? u:object_r:sysfs_project_info:s0
# Sys files (health)
/sys/devices/platform/soc/soc:oplus,chg_gki/power_supply/(?!.*wakeup\d+).* u:object_r:vendor_sysfs_battery_supply:s0

View file

@ -12,6 +12,7 @@ genfscon sysfs /devices/platform/soc/soc:tri_state_key/hall_data_calib
genfscon sysfs /kernel/ois_control u:object_r:sysfs_ois_control:s0
genfscon sysfs /kernel/tof_control u:object_r:sysfs_tof_control:s0
genfscon sysfs /module/memplus_core/parameters u:object_r:sysfs_memplus:s0
genfscon sysfs /project_info u:object_r:sysfs_project_info:s0
# sysfs (wakeup)
genfscon sysfs /devices/platform/dummy_hcd.0/usb1/wakeup u:object_r:sysfs_wakeup:s0