blob: 833a43f35b5019c16256a406fe24fe9584d036b8 [file] [log] [blame]
# Policy for /vendor/bin/wcnss_filter
type wcnss_filter, domain;
type wcnss_filter_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(wcnss_filter)
# talk to /dev/ttyHS0
allow wcnss_filter hci_attach_dev:chr_file rw_file_perms;
set_prop(wcnss_filter, wc_prop)
# write to proc/sysrq-trigger
allow wcnss_filter proc_sysrq:file w_file_perms;
# access to /dev/diag on debug builds
userdebug_or_eng(`
allow wcnss_filter diag_device:chr_file rw_file_perms;
')
# Allow reading Bluetooth-related system properties
get_prop(wcnss_filter, bluetooth_prop)