2016-02-12 18:05:42 +01:00
|
|
|
# mediadrmserver - mediadrm daemon
|
|
|
|
type mediadrmserver, domain;
|
|
|
|
type mediadrmserver_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
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;
|
2016-02-12 18:05:42 +01:00
|
|
|
|
2016-11-01 01:02:32 +01:00
|
|
|
add_service(mediadrmserver, mediacasserver_service)
|
|
|
|
|
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;
|