hal_client_domain(hal_graphics_composer_default, hal_graphics_allocator)

vndbinder_use(hal_graphics_composer_default)

allow hal_graphics_composer_default self:netlink_kobject_uevent_socket create_socket_perms_no_ioctl;

# cgroup tasks
allow hal_graphics_composer_default cgroup:file getattr;

# /data/vendor/log/hwc
allow hal_graphics_composer_default log_vendor_data_file:dir rw_dir_perms;
allow hal_graphics_composer_default log_vendor_data_file:file create_file_perms;

# /dev/g2d
allow hal_graphics_composer_default graphics_device:chr_file rw_file_perms;

# /dev/video50
allow hal_graphics_composer_default video_device:chr_file rw_file_perms;

# /sys/devices/soc0/revision
allow hal_graphics_composer_default sysfs_socinfo:dir r_dir_perms;
allow hal_graphics_composer_default sysfs_socinfo:file r_file_perms;


# /sys/kernel/debug/dma_buf/footprint/[0-9]+
allow hal_graphics_composer_default debugfs_ion_dma:dir r_dir_perms;
allow hal_graphics_composer_default debugfs_ion_dma:file r_file_perms;

allow hal_graphics_composer_default sysfs_decon:dir r_dir_perms;
allow hal_graphics_composer_default sysfs_decon:file r_file_perms;

allow hal_graphics_composer_default sysfs_ss_writable:dir r_dir_perms;
allow hal_graphics_composer_default sysfs_ss_writable:file r_file_perms;

get_prop(hal_graphics_composer_default, vendor_hwc_prop)

# /dev/ion/
allow hal_graphics_composer_default ion_device:chr_file rw_file_perms;

allow hal_graphics_composer_default vendor_surfaceflinger_vndservice:service_manager { add find };

