[ALPS04064627] Failed to power off
[Detail] Add selinux permission for set power_ctrl property MTK-Commit-Id: 9817304558e2ff85935b69b96e3aeeff81c20819 Change-Id: I3c47af8eab52dc0e6ca21223bde1a1ef7c055726 CR-Id: ALPS04064627 Feature: SP META Tool
This commit is contained in:
parent
6e969c94aa
commit
d9fd221e81
@ -375,8 +375,8 @@ allow meta_tst audiohal_prop:property_service set;
|
|||||||
allow meta_tst sysfs:file { read open };
|
allow meta_tst sysfs:file { read open };
|
||||||
allow meta_tst sysfs_headset:file { read open };
|
allow meta_tst sysfs_headset:file { read open };
|
||||||
|
|
||||||
#Date: W18.05
|
# Date: W18.05
|
||||||
#Purpose : Allow meta_tst to use socket for listening uevent
|
# Purpose : Allow meta_tst to use socket for listening uevent
|
||||||
allow meta_tst meta_tst:netlink_kobject_uevent_socket { read bind create setopt };
|
allow meta_tst meta_tst:netlink_kobject_uevent_socket { read bind create setopt };
|
||||||
|
|
||||||
# Date : WK18.28
|
# Date : WK18.28
|
||||||
@ -388,3 +388,9 @@ set_prop(meta_tst, vendor_usb_prop);
|
|||||||
# Operation: Catch log
|
# Operation: Catch log
|
||||||
# Purpose : meta connect with loghidlserver by socket.
|
# Purpose : meta connect with loghidlserver by socket.
|
||||||
allow meta_tst loghidlvendorservice:unix_stream_socket connectto;
|
allow meta_tst loghidlvendorservice:unix_stream_socket connectto;
|
||||||
|
|
||||||
|
# Date: W18.32
|
||||||
|
# Purpose : Allow meta_tst to set powerctl property
|
||||||
|
# avc: denied { set } for property=sys.powerctl pid=330 uid=0 gid=1001 scontext=u:r:meta_tst:s0
|
||||||
|
# tcontext=u:object_r:powerctl_prop:s0 tclass=property_service permissive=0
|
||||||
|
set_prop(meta_tst, powerctl_prop);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user