recovery: Use r_dir_file macro

Change-Id: I771556a254688b3e934d196717f755c783387704
diff --git a/qcom/private/recovery.te b/qcom/private/recovery.te
index 0e8416e..517a8aa 100644
--- a/qcom/private/recovery.te
+++ b/qcom/private/recovery.te
@@ -1,12 +1,5 @@
 recovery_only(`
-
-allow recovery sysfs_graphics:dir search;
-allow recovery sysfs_graphics:file { getattr open read write };
-
-# Battery and USB status
-allow recovery sysfs_battery_supply:dir search;
-allow recovery sysfs_battery_supply:file { getattr open read };
-allow recovery sysfs_usb_supply:dir search;
-allow recovery sysfs_usb_supply:file { getattr open read };
-
+r_dir_file(recovery, sysfs_battery_supply)
+r_dir_file(recovery, sysfs_graphics)
+r_dir_file(recovery, sysfs_usb_supply)
 ')