Merge "Allow init to create & write to vibrator/trigger."
am: 6ffa76ea78
Change-Id: I65c993eaf9e48d857a13b37dfc9b7a710c767043
This commit is contained in:
commit
04b800ed7e
1 changed files with 8 additions and 0 deletions
|
@ -320,6 +320,14 @@ allow init {
|
||||||
sysfs_zram
|
sysfs_zram
|
||||||
}:file rw_file_perms;
|
}: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.
|
# init chmod/chown access to /sys files.
|
||||||
allow init {
|
allow init {
|
||||||
sysfs_android_usb
|
sysfs_android_usb
|
||||||
|
|
Loading…
Reference in a new issue