Skip to content
Snippets Groups Projects
Commit 021344cc authored by Tri Vo's avatar Tri Vo Committed by Gerrit Code Review
Browse files

Merge "init: tighten sysfs_type permissions"

parents 215fb3ef 55039509
No related branches found
No related tags found
No related merge requests found
...@@ -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.
......
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