Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 565d8913 authored by Denny cy Lee's avatar Denny cy Lee Committed by Automerger Merge Worker
Browse files

Pixelstats: Add sepolicy for WLC metrics am: 9255fe50

Original change: https://googleplex-android-review.googlesource.com/c/device/google/redfin-sepolicy/+/11631644

Change-Id: I2b4b8435669d4f523469211e83bfaf8cd0429756
parents 256d3d17 9255fe50
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
# pixelstats vendor
type pixelstats_vendor, domain;

type pixelstats_vendor_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(pixelstats_vendor)
r_dir_file(pixelstats_vendor, sysfs_pixelstats)

unix_socket_connect(pixelstats_vendor, chre, chre)

get_prop(pixelstats_vendor, hwservicemanager_prop)
hwbinder_use(pixelstats_vendor)
allow pixelstats_vendor hal_pixelstats_hwservice:hwservice_manager find;
binder_call(pixelstats_vendor, pixelstats_system)

allow pixelstats_vendor fwk_stats_hwservice:hwservice_manager find;
binder_call(pixelstats_vendor, statsd)

allow pixelstats_vendor sysfs_scsi_devices_0000:file rw_file_perms;
r_dir_file(pixelstats_vendor, sysfs_batteryinfo)
# UeventListener
allow pixelstats_vendor self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;

# wlc
allow pixelstats_vendor sysfs_wlc:dir search;

# OrientationCollector
allow pixelstats_vendor fwk_sensor_hwservice:hwservice_manager find;
binder_call(pixelstats_vendor, system_server)
+2 −0
Original line number Diff line number Diff line
# pixelstats_vendor/OrientationCollector
binder_call(system_server, pixelstats_vendor)