13 lines
704 B
Text
13 lines
704 B
Text
type mediacodec_samsung, domain;
|
|
type mediacodec_samsung_exec, vendor_file_type, exec_type, file_type;
|
|
init_daemon_domain(mediacodec_samsung)
|
|
|
|
# mediacodec_samsung should never execute any executable without a domain transition
|
|
neverallow mediacodec_samsung { file_type fs_type }:file execute_no_trans;
|
|
|
|
# Media processing code is inherently risky and thus should have limited
|
|
# permissions and be isolated from the rest of the system and network.
|
|
# Lengthier explanation here:
|
|
# https://android-developers.googleblog.com/2016/05/hardening-media-stack.html
|
|
neverallow mediacodec_samsung domain:{ udp_socket rawip_socket } *;
|
|
neverallow mediacodec_samsung { domain userdebug_or_eng(`-su') }:tcp_socket *;
|