universal7885: rootdir: Allow tracing

Also address some selinux denials
This commit is contained in:
roynatech2544 2022-05-07 13:49:37 +09:00
commit 043d4db5cf
No known key found for this signature in database
GPG key ID: 50ABF73F0D19445D
5 changed files with 6 additions and 4 deletions

View file

@ -301,10 +301,6 @@ on boot
chown system system /dev/ttySAC2
chmod 0660 /dev/ttySAC2
# Set up kernel tracing, but disable it by default
chmod 0222 /sys/kernel/debug/tracing/trace_marker
write /sys/kernel/debug/tracing/tracing_on 0
# DVFS & Hotplug
chown system system /sys/power/cpuhotplug/enabled
chown system system /sys/power/cpuhotplug/min_online_cpu

View file

@ -43,6 +43,7 @@ type sysfs_gpu, sysfs_type, r_fs_type, fs_type;
type sysfs_mmc, sysfs_type, r_fs_type, fs_type;
type sysfs_backlight_writable, sysfs_type, rw_fs_type, fs_type;
type sysfs_bt_writable, sysfs_type, rw_fs_type, fs_type;
type sysfs_mmc_uevent, sysfs_type, rw_fs_type, fs_type;
type sysfs_mmc_queue, sysfs_type, rw_fs_type, fs_type;
type sysfs_gps_writable, sysfs_type, rw_fs_type, fs_type;
type sysfs_lcd_writable, sysfs_type, rw_fs_type, fs_type;

View file

@ -27,6 +27,8 @@ genfscon sysfs /devices/platform/argos u:obje
genfscon sysfs /devices/platform/13500000.dwmmc0/mmc_host/mmc0/ u:object_r:sysfs_mmc:s0
genfscon sysfs /devices/platform/13500000.dwmmc0/mmc_host/mmc0/mmc0:0001/block/mmcblk0/queue/ u:object_r:sysfs_mmc_queue:s0
genfscon sysfs /devices/platform/13500000.dwmmc0/mmc_host/mmc0/mmc0:0001/block/mmcblk0/uevent u:object_r:sysfs_mmc_uevent:s0
genfscon sysfs /devices/virtual/fingerprint/fingerprint u:object_r:sysfs_fingerprint:s0
genfscon sysfs /devices/virtual/input u:object_r:sysfs_input:s0
genfscon sysfs /devices/virtual/lcd/panel u:object_r:sysfs_lcd_writable:s0

View file

@ -17,3 +17,4 @@ set_prop(vendor_init, persist_data_wda_prop)
set_prop(vendor_init, persist_rmnet_prop)
get_prop(vendor_init, system_prop)
get_prop(vendor_init, vendor_radio_prop)
allow vendor_init efs_file:lnk_file read;

View file

@ -2,3 +2,5 @@
allow vold efs_file:dir r_dir_perms;
allow vold sysfs_virtual:file write;
allow vold sysfs_mmc_uevent:file write;