2016-02-12 18:05:42 +01:00
|
|
|
# mediadrmserver - mediadrm daemon
|
|
|
|
type mediadrmserver, domain;
|
2018-09-27 19:21:37 +02:00
|
|
|
type mediadrmserver_exec, system_file_type, exec_type, file_type;
|
2016-02-12 18:05:42 +01:00
|
|
|
|
|
|
|
typeattribute mediadrmserver mlstrustedsubject;
|
|
|
|
|
|
|
|
net_domain(mediadrmserver)
|
|
|
|
binder_use(mediadrmserver)
|
|
|
|
binder_call(mediadrmserver, binderservicedomain)
|
|
|
|
binder_call(mediadrmserver, appdomain)
|
|
|
|
binder_service(mediadrmserver)
|
2017-02-17 23:51:02 +01:00
|
|
|
hal_client_domain(mediadrmserver, hal_drm)
|
2016-02-12 18:05:42 +01:00
|
|
|
|
2017-01-19 22:23:52 +01:00
|
|
|
add_service(mediadrmserver, mediadrmserver_service)
|
|
|
|
allow mediadrmserver mediaserver_service:service_manager find;
|
2017-01-24 21:53:45 +01:00
|
|
|
allow mediadrmserver mediametrics_service:service_manager find;
|
2016-04-01 01:25:06 +02:00
|
|
|
allow mediadrmserver processinfo_service:service_manager find;
|
2016-07-13 23:30:27 +02:00
|
|
|
allow mediadrmserver surfaceflinger_service:service_manager find;
|
2017-04-19 01:24:58 +02:00
|
|
|
allow mediadrmserver system_file:dir r_dir_perms;
|
2016-02-12 18:05:42 +01:00
|
|
|
|
2018-05-26 01:23:37 +02:00
|
|
|
# TODO(b/80317992): remove
|
|
|
|
binder_call(mediadrmserver, hal_omx_server)
|
|
|
|
|
2017-01-26 00:27:27 +01:00
|
|
|
###
|
|
|
|
### neverallow rules
|
|
|
|
###
|
|
|
|
|
|
|
|
# mediadrmserver should never execute any executable without a
|
|
|
|
# domain transition
|
|
|
|
neverallow mediadrmserver { file_type fs_type }:file execute_no_trans;
|
|
|
|
|
|
|
|
# do not allow privileged socket ioctl commands
|
|
|
|
neverallowxperm mediadrmserver domain:{ rawip_socket tcp_socket udp_socket } ioctl priv_sock_ioctls;
|