Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sepolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
021344cc
Commit
021344cc
authored
7 years ago
by
Tri Vo
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "init: tighten sysfs_type permissions"
parents
215fb3ef
55039509
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/init.te
+7
-1
7 additions, 1 deletion
public/init.te
with
7 additions
and
1 deletion
public/init.te
+
7
−
1
View file @
021344cc
...
@@ -214,7 +214,7 @@ allow init {
...
@@ -214,7 +214,7 @@ allow init {
-contextmount_type
-contextmount_type
-proc
-proc
-sdcard_type
-sdcard_type
-sysfs
-sysfs
_type
-rootfs
-rootfs
}:file { open read setattr };
}:file { open read setattr };
allow init { fs_type -contextmount_type -sdcard_type -rootfs }:dir { open read setattr search };
allow init { fs_type -contextmount_type -sdcard_type -rootfs }:dir { open read setattr search };
...
@@ -304,6 +304,10 @@ allow init {
...
@@ -304,6 +304,10 @@ allow init {
sysfs_zram
sysfs_zram
}:file w_file_perms;
}:file w_file_perms;
allow init {
sysfs_dt_firmware_android
}:file r_file_perms;
# init chmod/chown access to /sys files.
# init chmod/chown access to /sys files.
allow init {
allow init {
sysfs_android_usb
sysfs_android_usb
...
@@ -312,6 +316,8 @@ allow init {
...
@@ -312,6 +316,8 @@ allow init {
sysfs_leds
sysfs_leds
sysfs_lowmemorykiller
sysfs_lowmemorykiller
sysfs_power
sysfs_power
sysfs_vibrator
sysfs_wake_lock
}:file setattr;
}:file setattr;
# Set usermodehelpers.
# Set usermodehelpers.
...
...
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