Change-Id: Id3a0757941ee4ec7bf73b4d012239b94c86ab782
genfscon sysfs /class/input_booster/tail u:object_r:sysfs_input:s0
# Swap
-genfscon sysfs /devices/virtual/block/vnswap0/disksize u:object_r:sysfs_sswap:s0
-genfscon sysfs /devices/virtual/block/vnswap0/swap_filename u:object_r:sysfs_sswap:s0
-genfscon sysfs /devices/virtual/block/vnswap0/init_backing_storage u:object_r:sysfs_sswap:s0
+genfscon sysfs /devices/virtual/block/vnswap0 u:object_r:sysfs_sswap:s0
# CPU/Scheduler devices
genfscon sysfs /power/cpufreq_table u:object_r:sysfs_devices_system_cpu:s0
# CPU permissions
allow init sysfs_devices_system_cpu:file rw_file_perms;
+# sswap permissions
+allow init sswap_device:blk_file write;
+allow init sysfs_sswap:file { open write };
+
# Block device sysfs
allow init sysfs_block:file rw_file_perms;
allow sswap sswap_device:blk_file rw_file_perms;
allow sswap sysfs_sswap:file rw_file_perms;
+allow sswap sysfs_sswap:dir search;
allow sswap block_device:dir search;
allow sswap self:capability sys_admin;
-allow sswap proc:file r_file_perms;
allow sswap proc_meminfo:file r_file_perms;
allow sswap properties_device:dir r_dir_perms;