Skip to content
Snippets Groups Projects
Commit 6ffa76ea authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Allow init to create & write to vibrator/trigger."

parents cf71a5ae 5a570606
No related branches found
No related tags found
No related merge requests found
...@@ -320,6 +320,14 @@ allow init { ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment