This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Nolen Johnson 7278919e58 msm8953-common: Append vendor prefix to several properties
* Needed after `LA.UM.9.2.r1-02700-SDMxx0.0` merge.

* Also remove duplicated vendor_fm_prop, as its now in
  qcom/sepolicy.

Change-Id: Iea4145ae677b463f9370843d4db5c16d8862a6fe
2021-05-15 17:11:27 -03:00

38 lines
1.1 KiB
Plaintext

type perfd, domain;
type perfd_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(perfd)
# perfd uses kill(pid, 0) to determine if a process exists.
# Determining if a process exists does not require the kill capability
# since a permission denied indicates the process exists.
dontaudit perfd self:capability kill;
allow perfd mediacodec:process signull;
allow perfd hal_power_default:process signull;
allow perfd cgroup:file rw_file_perms;
allow perfd proc:file rw_file_perms;
allow perfd sysfs_scsi_host:file r_file_perms;
r_dir_file(perfd, sysfs_graphics)
r_dir_file(perfd, sysfs_socinfo)
allow perfd sysfs_devices_system_cpu:file w_file_perms;
allow perfd perfd_socket:sock_file write;
allow perfd device_latency:chr_file w_file_perms;
# wahoo sysfs_msm_subsys is sysfs_devfreq + sysfs_kgsl
r_dir_file(perfd, sysfs_devfreq)
allow perfd sysfs_devfreq:file w_file_perms;
r_dir_file(perfd, sysfs_kgsl)
allow perfd sysfs_kgsl:file w_file_perms;
allow perfd sysfs_msm_perf:dir r_dir_perms;
allow perfd sysfs_msm_perf:file rw_file_perms;
get_prop(perfd, vendor_freq_prop)