Merge "Allow init to create & write to vibrator/trigger." am: 6ffa76ea78 am: 04b800ed7e

am: 523c49139d

Change-Id: I77376c86b0fc38c5214fb26fa6c13339e3646dc9
This commit is contained in:
Alan Stokes 2018-02-27 15:52:40 +00:00 committed by android-build-merger
commit 6c467309f1

View file

@ -320,6 +320,14 @@ allow init {
sysfs_zram
}:file rw_file_perms;
# Allow init to write to vibrator/trigger
allow init sysfs_vibrator:file w_file_perms;
# Creating files on sysfs is impossible so this isn't a threat.
# We may write to a non-existent file to avoid conditional
# init behavior.
dontaudit init sysfs_vibrator:dir write;
# init chmod/chown access to /sys files.
allow init {
sysfs_android_usb