sepolicy: Allow nvram_daemon to read sysfs_dt_firmware_android
W nvram_daemon: type=1400 audit(0.0:186): avc: denied { search } for name="android" dev="sysfs" ino=93 scontext=u:r:nvram_daemon:s0 tcontext=u:object_r:sysfs_dt_firmware_android:s0 tclass=dir permissive=0
E TcUtils : NLMSG_ERROR message return error: -2
D NVRAM : failed to get nvram path /nvram
Change-Id: I8d095e7601a4ecdbdf90819757cd5831f51d31b3
diff --git a/basic/non_plat/fuelgauged_nvram.te b/basic/non_plat/fuelgauged_nvram.te
index 9114614..0462ed4 100644
--- a/basic/non_plat/fuelgauged_nvram.te
+++ b/basic/non_plat/fuelgauged_nvram.te
@@ -54,3 +54,5 @@
# Allow ReadDefaultFstab().
read_fstab(fuelgauged_nvram)
+
+r_dir_file(fuelgauged_nvram, sysfs_dt_firmware_android)
diff --git a/basic/non_plat/nvram_daemon.te b/basic/non_plat/nvram_daemon.te
index eba4cf6..87facaf 100644
--- a/basic/non_plat/nvram_daemon.te
+++ b/basic/non_plat/nvram_daemon.te
@@ -76,4 +76,6 @@
read_fstab(nvram_daemon)
# Purpose: Wifi NVRAM ConnFem Kernel node access
-allow nvram_daemon connfem_device:chr_file rw_file_perms;
\ No newline at end of file
+allow nvram_daemon connfem_device:chr_file rw_file_perms;
+
+r_dir_file(nvram_daemon, sysfs_dt_firmware_android)