Skip to content
Snippets Groups Projects
Commit 302f59aa authored by Daniel Cashman's avatar Daniel Cashman Committed by Gerrit Code Review
Browse files

Merge "Allow init to restorecon sysfs files."

parents a20409bc 32915658
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,7 @@ allow init rootfs:file relabelfrom; ...@@ -36,6 +36,7 @@ allow init rootfs:file relabelfrom;
# init.<board>.rc files often include device-specific types, so # init.<board>.rc files often include device-specific types, so
# we just allow all file types except /system files here. # we just allow all file types except /system files here.
allow init {file_type -system_file -exec_type}:dir_file_class_set relabelto; allow init {file_type -system_file -exec_type}:dir_file_class_set relabelto;
allow init sysfs_type:{ dir file lnk_file } relabelto;
# Unlabeled file access for upgrades from 4.2. # Unlabeled file access for upgrades from 4.2.
allow init unlabeled:dir { create_dir_perms relabelfrom }; allow init unlabeled:dir { create_dir_perms relabelfrom };
......
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