* we really should label all the files correctly instead of just allowing to read or write to sysfs:file
Change-Id: I9af5f8e4df3426a4ed67b43fc01c9fa4150785bf
allow cpboot-daemon bin_nv_data_efs_file:file rw_file_perms;
allow cpboot-daemon efs_file:file rw_file_perms;
-# /sys/bus/usb/devices/1-2/idVendor
-allow cpboot-daemon sysfs:file r_file_perms;
-
# /proc/cmdline
allow cpboot-daemon proc:file r_file_perms;
# hal_power_default
-allow hal_power_default sysfs:dir { open read search };
-allow hal_power_default sysfs:file { rw_file_perms };
# Input devices
allow hal_power_default sysfs_input:dir { open read search };
# /sys/devices/system/cpu/cpu[0-9]/cpufreq/*
allow kernel sysfs_devices_system_cpu:file { setattr };
-allow kernel sysfs:file { setattr };
# /efs contents
allow kernel { app_efs_file battery_efs_file efs_file sensor_efs_file }:dir r_dir_perms;
allow sswap sswap_device:blk_file { read write open };
allow sswap rootfs:file { entrypoint read };
-allow sswap sysfs:file { write open read };
allow sswap block_device:dir search;
allow sswap self:capability sys_admin;