65d4f44c1f
Assortment of policy changes include: * Bluetooth domain to talk to init and procfs. * New device node domains. * Allow zygote to talk to its executable. * Update system domain access to new device node domains. * Create a post-process sepolicy with dontaudits removed. * Allow rild to use the tty device. Change-Id: Ibb96b590d0035b8f6d1606cd5e4393c174d10ffb Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
52 lines
1.8 KiB
Text
52 lines
1.8 KiB
Text
# mediaserver - multimedia daemon
|
|
type mediaserver, domain;
|
|
type mediaserver_exec, exec_type, file_type;
|
|
|
|
typeattribute mediaserver mlstrustedsubject;
|
|
|
|
net_domain(mediaserver)
|
|
init_daemon_domain(mediaserver)
|
|
unix_socket_connect(mediaserver, property, init)
|
|
|
|
r_dir_file(mediaserver, sdcard_type)
|
|
|
|
binder_use(mediaserver)
|
|
binder_call(mediaserver, binderservicedomain)
|
|
binder_call(mediaserver, appdomain)
|
|
binder_service(mediaserver)
|
|
|
|
allow mediaserver kernel:system module_request;
|
|
allow mediaserver app_data_file:dir search;
|
|
allow mediaserver app_data_file:file r_file_perms;
|
|
allow mediaserver sdcard_type:file write;
|
|
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;
|
|
allow mediaserver tee_device:chr_file rw_file_perms;
|
|
allow mediaserver audio_prop:property_service set;
|
|
|
|
# XXX Label with a specific type?
|
|
allow mediaserver sysfs:file rw_file_perms;
|
|
|
|
# XXX Why?
|
|
allow mediaserver apk_data_file:file { read getattr };
|
|
|
|
# To use remote processor
|
|
allow mediaserver rpmsg_device:chr_file rw_file_perms;
|
|
|
|
# Inter System processes communicate over named pipe (FIFO)
|
|
allow mediaserver system:fifo_file r_file_perms;
|
|
|
|
# Camera calibration
|
|
allow mediaserver camera_calibration_file:dir r_dir_perms;
|
|
allow mediaserver camera_calibration_file:file r_file_perms;
|
|
|
|
# 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;
|
|
|
|
# Allow abstract socket connection
|
|
allow mediaserver rild:unix_stream_socket { connectto read write setopt };
|