Skip to content
Snippets Groups Projects
Commit a023a9e5 authored by Jeff Vander Stoep's avatar Jeff Vander Stoep Committed by android-build-merger
Browse files

Enforce separation of privilege for HAL driver access am: 7fa59c81

am: fa633e52

Change-Id: I990ad43e82c565f3962059170e1b34e857d6b278
parents 947be7db fa633e52
No related branches found
No related tags found
No related merge requests found
...@@ -38,3 +38,6 @@ neverallow hal_audio { file_type fs_type }:file execute_no_trans; ...@@ -38,3 +38,6 @@ neverallow hal_audio { file_type fs_type }:file execute_no_trans;
# Should never need network access. # Should never need network access.
# Disallow network sockets. # Disallow network sockets.
neverallow hal_audio domain:{ tcp_socket udp_socket rawip_socket } *; neverallow hal_audio domain:{ tcp_socket udp_socket rawip_socket } *;
# Only audio HAL may directly access the audio hardware
neverallow { halserverdomain -hal_audio_server } audio_device:chr_file *;
...@@ -28,3 +28,7 @@ neverallow hal_camera { file_type fs_type }:file execute_no_trans; ...@@ -28,3 +28,7 @@ neverallow hal_camera { file_type fs_type }:file execute_no_trans;
# hal_camera should never need network access. Disallow network sockets. # hal_camera should never need network access. Disallow network sockets.
neverallow hal_camera domain:{ tcp_socket udp_socket rawip_socket } *; neverallow hal_camera domain:{ tcp_socket udp_socket rawip_socket } *;
# Only camera HAL may directly access the camera and video hardware
neverallow { halserverdomain -hal_camera_server } camera_device:chr_file *;
neverallow { halserverdomain -hal_camera_server } video_device:chr_file *;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment