sdm660-common: Add sepolicy for kcal

Signed-off-by: bablusss <baaswanthmadhav@gmail.com>
This commit is contained in:
SagarMakhar 2019-07-20 10:16:00 +00:00 committed by Max Weffers
parent 91afce1fb2
commit 409cd433a0
No known key found for this signature in database
GPG key ID: 795F73D22FB93FAE
4 changed files with 13 additions and 1 deletions

View file

@ -17,6 +17,9 @@ type sysfs_fingerprint, sysfs_type, fs_type;
# Input files
type idc_file, file_type, vendor_file_type;
# Kcal
type kcal_dev, sysfs_type, fs_type;
# Keylayout
type vendor_keylayout_file, file_type, vendor_file_type;

View file

@ -25,6 +25,10 @@
# IR
/dev/spidev7.1 u:object_r:spidev_device:s0
# Kcal
/sys/devices/platform/kcal_ctrl.0(/.*)? u:object_r:kcal_dev:s0
/sys/bus/platform/drivers/kcal_ctrl(/.*)? u:object_r:kcal_dev:s0
# Keylayout
/vendor/usr/idc(/.*)? u:object_r:idc_file:s0
/vendor/usr/keylayout(/.*)? u:object_r:vendor_keylayout_file:s0

View file

@ -1,4 +1,6 @@
allow system_app vendor_default_prop:file { getattr open read };
allow system_app wificond:binder call;
allow system_app hal_mlipay_hwservice:hwservice_manager find;
allow system_app hal_mlipay_default:binder call;
allow system_app hal_mlipay_default:binder call;
allow system_app kcal_dev:file rw_file_perms;
allow system_app kcal_dev:dir search;

3
sepolicy/vendor/ueventd.te vendored Normal file
View file

@ -0,0 +1,3 @@
allow ueventd kcal_dev:dir r_dir_perms;
allow ueventd kcal_dev:file rw_file_perms;
allow ueventd kcal_dev:lnk_file r_file_perms;