blob: 4f2838220181f92b3761dd4891491c341a4fa1a2 [file] [log] [blame]
Stephen Smalley2dd4e512012-01-04 12:33:27 -05001# surfaceflinger - display compositor service
2type surfaceflinger, domain;
Stephen Smalley52a85232013-10-29 14:42:40 -04003permissive surfaceflinger;
Stephen Smalley2dd4e512012-01-04 12:33:27 -05004type surfaceflinger_exec, exec_type, file_type;
5
6init_daemon_domain(surfaceflinger)
Stephen Smalley52a85232013-10-29 14:42:40 -04007typeattribute surfaceflinger mlstrustedsubject;
Stephen Smalley2dd4e512012-01-04 12:33:27 -05008
9# Talk to init over the property socket.
10unix_socket_connect(surfaceflinger, property, init)
Stephen Smalley52a85232013-10-29 14:42:40 -040011
12# Perform Binder IPC.
13binder_use(surfaceflinger)
14binder_call(surfaceflinger, system_server)
15binder_service(surfaceflinger)
16allow surfaceflinger init:binder transfer;
17
Stephen Smalley3ba90122013-12-12 09:09:53 -050018# Access the GPU.
19allow surfaceflinger gpu_device:chr_file rw_file_perms;
20
Stephen Smalley52a85232013-10-29 14:42:40 -040021# Access /dev/graphics/fb0.
22allow surfaceflinger graphics_device:dir search;
23allow surfaceflinger graphics_device:chr_file rw_file_perms;
24
25# Access /dev/video1.
26allow surfaceflinger video_device:chr_file rw_file_perms;
27
28# Create and use netlink kobject uevent sockets.
29allow surfaceflinger self:netlink_kobject_uevent_socket *;
30
31# Set properties.
32allow surfaceflinger system_prop:property_service set;
33allow surfaceflinger ctl_default_prop:property_service set;
34
35# Use open files supplied by an app.
36allow surfaceflinger appdomain:fd use;
37allow surfaceflinger platform_app_data_file:file { read write };
38allow surfaceflinger app_data_file:file { read write };