Skip to content
Snippets Groups Projects
Commit 6eef5589 authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

Merge "mediaextractor: ensure no direct open()s" am: e22e99a6 am: ea17be60

am: cbb0543d

Change-Id: Ibf8ee8c6da1fbb3358179044c99861905751884c
parents 0011fd40 cbb0543d
No related branches found
No related tags found
No related merge requests found
......@@ -53,3 +53,11 @@ neverallow mediaextractor { file_type fs_type }:file execute_no_trans;
# Lengthier explanation here:
# https://android-developers.googleblog.com/2016/05/hardening-media-stack.html
neverallow mediaextractor domain:{ tcp_socket udp_socket rawip_socket } *;
# mediaextractor should not be opening /data files directly. Any files
# it touches (with a few exceptions) need to be passed to it via a file
# descriptor opened outside the process.
neverallow mediaextractor {
data_file_type
-zoneinfo_data_file # time zone data from /data/misc/zoneinfo
}:file open;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment