Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemSEPolicy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
523c4913
Commit
523c4913
authored
7 years ago
by
Alan Stokes
Committed by
android-build-merger
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allow init to create & write to vibrator/trigger." am:
6ffa76ea
am:
04b800ed
Change-Id: Ic4fb65cc9c3a566b9b89c5b6e245c4d40e0fc3fa
parents
4c63cd4c
04b800ed
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/init.te
+8
-0
8 additions, 0 deletions
public/init.te
with
8 additions
and
0 deletions
public/init.te
+
8
−
0
View file @
523c4913
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment