1type modem_svc, domain;
2type modem_svc_exec, exec_type, vendor_file_type, file_type;
3
4init_daemon_domain(modem_svc)
5
6allow modem_svc self:capability net_bind_service;
7allow modem_svc self:socket create_socket_perms;
8allowxperm modem_svc self:socket ioctl msm_sock_ipc_ioctls;
9
10# For property service
11set_prop(modem_svc, vendor_modem_diag_prop)
12set_prop(modem_svc, vendor_modem_prop)
13get_prop(modem_svc, vendor_build_type_prop)
14get_prop(modem_svc, exported3_radio_prop)
15
16# For bugreport collection
17allow modem_svc hal_dumpstate_impl:fd use;
18allow modem_svc dumpstate:fd use;
19allow modem_svc shell_data_file:file write;
20
21dontaudit modem_svc kernel:system module_request;
22dontaudit modem_svc sysfs_msm_subsys:dir search;
23