• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1type wcnss_service, domain;
2type wcnss_service_exec, exec_type, vendor_file_type, file_type;
3
4init_daemon_domain(wcnss_service)
5net_domain(wcnss_service)
6
7vndbinder_use(wcnss_service)
8binder_call(wcnss_service, per_mgr)
9
10allow wcnss_service per_mgr_service:service_manager find;
11
12allow wcnss_service vendor_shell_exec:file rx_file_perms;
13allow wcnss_service vendor_toolbox_exec:file rx_file_perms;
14
15
16allow wcnss_service self:socket create_socket_perms;
17allowxperm wcnss_service self:socket ioctl msm_sock_ipc_ioctls;
18allowxperm wcnss_service self:udp_socket ioctl { SIOCIWFIRSTPRIV_05 SIOCSIFFLAGS };
19allow wcnss_service self:netlink_generic_socket create_socket_perms_no_ioctl;
20allow wcnss_service self:netlink_socket create_socket_perms_no_ioctl;
21
22allow wcnss_service cnss_vendor_data_file:dir create_dir_perms;
23allow wcnss_service cnss_vendor_data_file:file create_file_perms;
24
25r_dir_file(wcnss_service, sysfs_msm_subsys)
26# pkt logging for cnss_diag
27userdebug_or_eng(`
28  allow wcnss_service wifi_vendor_log_data_file:dir create_dir_perms;
29  allow wcnss_service wifi_vendor_log_data_file:file create_file_perms;
30  r_dir_file(wcnss_service, proc_wifi_dbg)
31')
32
33allow wcnss_service sysfs_soc:dir search;
34allow wcnss_service sysfs_soc:file r_file_perms;
35
36# request_firmware causes a denial. It can be safely ignored
37dontaudit wcnss_service firmware_file:dir search;
38
39r_dir_file(wcnss_service, sysfs_net)
40
41# used for collecting the sku for radio for BDF file selection
42get_prop(wcnss_service, vendor_radio_sku_prop)
43
44dontaudit wcnss_service kernel:system module_request;
45