type dashd, domain;
type dashd_exec, exec_type, vendor_file_type, file_type;

init_daemon_domain(dashd)

allow dashd vendor_sysfs_battery_supply:file w_file_perms;
allow dashd vendor_sysfs_usb_supply:file w_file_perms;

allow dashd proc_cmdline:file r_file_perms;

allow dashd dash_device:chr_file rw_file_perms;
allow dashd kmsg_device:chr_file rw_file_perms;

r_dir_file(dashd, vendor_sysfs_battery_supply)
r_dir_file(dashd, vendor_sysfs_usb_supply)
r_dir_file(dashd, sysfs_dash_charger)
