2020-09-12 02:50:45 +02:00
|
|
|
# mediatuner - mediatuner daemon
|
|
|
|
type mediatuner, domain;
|
|
|
|
type mediatuner_exec, system_file_type, exec_type, file_type;
|
|
|
|
|
|
|
|
typeattribute mediatuner coredomain;
|
|
|
|
|
|
|
|
init_daemon_domain(mediatuner)
|
|
|
|
hal_client_domain(mediatuner, hal_tv_tuner)
|
|
|
|
|
|
|
|
binder_use(mediatuner)
|
|
|
|
binder_call(mediatuner, appdomain)
|
|
|
|
binder_service(mediatuner)
|
|
|
|
|
|
|
|
add_service(mediatuner, mediatuner_service)
|
|
|
|
allow mediatuner system_server:fd use;
|
2021-01-21 20:08:37 +01:00
|
|
|
allow mediatuner tv_tuner_resource_mgr_service:service_manager find;
|
2021-03-02 01:48:02 +01:00
|
|
|
allow mediatuner package_native_service:service_manager find;
|
2021-01-21 20:08:37 +01:00
|
|
|
binder_call(mediatuner, system_server)
|
2020-09-12 02:50:45 +02:00
|
|
|
|
2022-08-09 23:57:02 +02:00
|
|
|
# Read ro.tuner.lazyhal
|
|
|
|
get_prop(mediatuner, tuner_config_prop)
|
|
|
|
|
2023-06-20 18:07:23 +02:00
|
|
|
# Read tuner.server.enable
|
|
|
|
get_prop(mediatuner, tuner_server_ctl_prop)
|
|
|
|
|
2020-09-12 02:50:45 +02:00
|
|
|
###
|
|
|
|
### neverallow rules
|
|
|
|
###
|
|
|
|
|
|
|
|
# mediatuner should never execute any executable without a
|
|
|
|
# domain transition
|
|
|
|
neverallow mediatuner { file_type fs_type }:file execute_no_trans;
|
|
|
|
|
|
|
|
# do not allow privileged socket ioctl commands
|
|
|
|
neverallowxperm mediatuner domain:{ rawip_socket tcp_socket udp_socket } ioctl priv_sock_ioctls;
|
|
|
|
|