msm8226-common: sepolicy: Label sysfs_mmc_host, resolve denials

* avc: denied { write } for name="control" dev="sysfs" ino=25383
  scontext=u:r:init:s0 tcontext=u:object_r:sysfs_mmc_host:s0
  tclass=file permissive=1
* avc: denied { open } for name="control" dev="sysfs" ino=25383
  scontext=u:r:init:s0 tcontext=u:object_r:sysfs_mmc_host:s0
  tclass=file permissive=1

Change-Id: I876d025db9cf1fe67faeccca830ffd53dbf92904
This commit is contained in:
Kevin F. Haggerty 2018-11-16 15:45:08 -07:00 committed by Francescodario Cuzzocrea
parent 50467a68d7
commit 2e3ad6b148
2 changed files with 2 additions and 0 deletions

View file

@ -48,6 +48,7 @@
# sysfs - block/storage # sysfs - block/storage
/sys/devices/msm_sdcc\.[0-9]/mmc_host/mmc[0-9]/mmc[0-9]:[0-9]+/block/mmcblk[0-9]/bkops_en u:object_r:sysfs_io_sched_tuneable:s0 /sys/devices/msm_sdcc\.[0-9]/mmc_host/mmc[0-9]/mmc[0-9]:[0-9]+/block/mmcblk[0-9]/bkops_en u:object_r:sysfs_io_sched_tuneable:s0
/sys/devices/msm_sdcc\.[0-9]/mmc_host/mmc[0-9]/mmc[0-9]:[0-9]+/block/mmcblk[0-9]/stat u:object_r:sysfs_disk_stat:s0 /sys/devices/msm_sdcc\.[0-9]/mmc_host/mmc[0-9]/mmc[0-9]:[0-9]+/block/mmcblk[0-9]/stat u:object_r:sysfs_disk_stat:s0
/sys/devices/msm_sdcc\.[0-9]/mmc_host/mmc[0-9]/power(/.*)? u:object_r:sysfs_mmc_host:s0
# sysfs - cpu/perf # sysfs - cpu/perf
/sys/devices/system/soc/soc0(/.*)? u:object_r:sysfs_socinfo:s0 /sys/devices/system/soc/soc0(/.*)? u:object_r:sysfs_socinfo:s0

View file

@ -29,6 +29,7 @@ allow init {
}:file setattr; }:file setattr;
allow init { allow init {
sysfs_mmc_host
sysfs_msm_perf sysfs_msm_perf
sysfs_sec_key sysfs_sec_key
}:file w_file_perms; }:file w_file_perms;