1type dmd, domain; 2type dmd_exec, vendor_file_type, exec_type, file_type; 3init_daemon_domain(dmd) 4 5# Grant to access serial device for external logging tool 6allow dmd serial_device:chr_file rw_file_perms; 7 8# Grant to access radio device 9allow dmd radio_device:chr_file rw_file_perms; 10 11# Grant to access slog dir/file 12allow dmd vendor_slog_file:dir create_dir_perms; 13allow dmd vendor_slog_file:file create_file_perms; 14 15# Grant to access tcp socket 16allow dmd node:tcp_socket node_bind; 17allow dmd self:tcp_socket { create_socket_perms_no_ioctl listen accept bind }; 18 19# Grant to access log related properties 20set_prop(dmd, vendor_diag_prop) 21set_prop(dmd, vendor_slog_prop) 22set_prop(dmd, vendor_modem_prop) 23 24get_prop(dmd, vendor_persist_config_default_prop) 25 26# Grant to access hwservice manager 27get_prop(dmd, hwservicemanager_prop) 28 29binder_call(dmd, hwservicemanager) 30