2012-01-04 18:33:27 +01:00
|
|
|
# mediaserver - multimedia daemon
|
|
|
|
type mediaserver, domain;
|
|
|
|
type mediaserver_exec, exec_type, file_type;
|
|
|
|
|
2012-11-28 21:18:30 +01:00
|
|
|
typeattribute mediaserver mlstrustedsubject;
|
|
|
|
|
|
|
|
net_domain(mediaserver)
|
2012-01-04 18:33:27 +01:00
|
|
|
init_daemon_domain(mediaserver)
|
2012-11-28 02:34:54 +01:00
|
|
|
unix_socket_connect(mediaserver, property, init)
|
2012-11-28 21:18:30 +01:00
|
|
|
|
2013-03-07 01:26:36 +01:00
|
|
|
r_dir_file(mediaserver, sdcard_type)
|
2012-11-28 21:18:30 +01:00
|
|
|
|
2012-01-04 18:33:27 +01:00
|
|
|
binder_use(mediaserver)
|
|
|
|
binder_call(mediaserver, binderservicedomain)
|
|
|
|
binder_call(mediaserver, appdomain)
|
|
|
|
binder_service(mediaserver)
|
2012-11-28 21:18:30 +01:00
|
|
|
|
|
|
|
allow mediaserver kernel:system module_request;
|
2012-01-04 18:33:27 +01:00
|
|
|
allow mediaserver app_data_file:dir search;
|
2013-03-22 22:41:37 +01:00
|
|
|
allow mediaserver app_data_file:file r_file_perms;
|
2013-03-07 01:26:36 +01:00
|
|
|
allow mediaserver sdcard_type:file write;
|
2012-01-04 18:33:27 +01:00
|
|
|
allow mediaserver camera_device:chr_file rw_file_perms;
|
|
|
|
allow mediaserver graphics_device:chr_file rw_file_perms;
|
|
|
|
allow mediaserver video_device:chr_file rw_file_perms;
|
|
|
|
allow mediaserver audio_device:dir r_dir_perms;
|
|
|
|
allow mediaserver audio_device:chr_file rw_file_perms;
|
|
|
|
allow mediaserver qemu_device:chr_file rw_file_perms;
|
2012-11-28 21:18:30 +01:00
|
|
|
allow mediaserver tee_device:chr_file rw_file_perms;
|
|
|
|
allow mediaserver audio_prop:property_service set;
|
|
|
|
|
2012-01-04 18:33:27 +01:00
|
|
|
# XXX Label with a specific type?
|
|
|
|
allow mediaserver sysfs:file rw_file_perms;
|
2012-11-28 21:18:30 +01:00
|
|
|
|
2012-01-04 18:33:27 +01:00
|
|
|
# XXX Why?
|
|
|
|
allow mediaserver apk_data_file:file { read getattr };
|
2012-07-11 20:21:05 +02:00
|
|
|
|
|
|
|
# To use remote processor
|
|
|
|
allow mediaserver rpmsg_device:chr_file rw_file_perms;
|
2012-07-11 20:21:04 +02:00
|
|
|
|
|
|
|
# Inter System processes communicate over named pipe (FIFO)
|
|
|
|
allow mediaserver system:fifo_file r_file_perms;
|
2012-07-19 19:34:39 +02:00
|
|
|
|
|
|
|
# Camera calibration
|
|
|
|
allow mediaserver camera_calibration_file:dir r_dir_perms;
|
|
|
|
allow mediaserver camera_calibration_file:file r_file_perms;
|
2012-07-19 20:07:04 +02:00
|
|
|
|
|
|
|
# Read/[write] to /proc/net/xt_qtaguid/ctrl and /dev/xt_qtaguid
|
|
|
|
allow mediaserver qtaguid_proc:file rw_file_perms;
|
|
|
|
allow mediaserver qtaguid_device:chr_file r_file_perms;
|
2012-11-28 21:18:30 +01:00
|
|
|
|
2012-07-27 22:20:20 +02:00
|
|
|
# Allow abstract socket connection
|
|
|
|
allow mediaserver rild:unix_stream_socket connectto;
|