android_device_oneplus_sm81.../sepolicy/vendor/hal_param_default.te

30 lines
1.1 KiB
Plaintext

type hal_param_default, domain;
hal_server_domain(hal_param_default, hal_param)
type hal_param_default_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_param_default)
allow hal_param_default self:qipcrtr_socket create_socket_perms_no_ioctl;
# Allow hal_param_default search in block_device
allow hal_param_default block_device:dir search;
# Allow hal_param_default to read and write to param_block_device
allow hal_param_default param_block_device:blk_file rw_file_perms;
# Allow hal_param_default to read and write to param_device
allow hal_param_default param_device:chr_file rw_file_perms;
# Allow hal_param_default to write property_socket:sock_file
allow hal_param_default property_socket:sock_file write;
# Allow hal_param_default to read sysfs_project_info
allow hal_param_default sysfs_project_info:dir search;
allow hal_param_default sysfs_project_info:file r_file_perms;
# Allow hal_param_default connect to init:unix_stream_socket
allow hal_param_default init:unix_stream_socket connectto;
get_prop(hal_param_default, vendor_param_prop)
set_prop(hal_param_default, vendor_param_prop)