allow init to read symlinks in sys
avc: denied { read } for name="device" dev="sysfs" ino=36099 scontext=u:r:init:s0 tcontext=u:object_r:sysfs_rmtfs:s0 tclass=lnk_file
init is already allowed to read directories, this is an obvious omission.
Change-Id: I5131a84bb67e73aaed235c3cbab95c365eaaa2f0
diff --git a/init.te b/init.te
index 747f771..9a7fde7 100644
--- a/init.te
+++ b/init.te
@@ -199,6 +199,7 @@
# Write to sysfs nodes.
allow init sysfs_type:dir r_dir_perms;
+allow init sysfs_type:lnk_file read;
allow init sysfs_type:file w_file_perms;
# disksize