2012-01-04 18:33:27 +01:00
|
|
|
# surfaceflinger - display compositor service
|
|
|
|
type surfaceflinger, domain;
|
|
|
|
type surfaceflinger_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
init_daemon_domain(surfaceflinger)
|
|
|
|
typeattribute surfaceflinger mlstrustedsubject;
|
|
|
|
|
|
|
|
# Talk to init over the property socket.
|
|
|
|
unix_socket_connect(surfaceflinger, property, init)
|
|
|
|
|
|
|
|
# Perform Binder IPC.
|
|
|
|
binder_use(surfaceflinger)
|
|
|
|
binder_call(surfaceflinger, system)
|
|
|
|
binder_service(surfaceflinger)
|
2012-11-16 15:17:54 +01:00
|
|
|
allow surfaceflinger init:binder transfer;
|
2012-01-04 18:33:27 +01:00
|
|
|
|
|
|
|
# Access /dev/graphics/fb0.
|
|
|
|
allow surfaceflinger graphics_device:dir search;
|
|
|
|
allow surfaceflinger graphics_device:chr_file rw_file_perms;
|
|
|
|
|
|
|
|
# Access /dev/video1.
|
|
|
|
allow surfaceflinger video_device:chr_file rw_file_perms;
|
|
|
|
|
|
|
|
# Create and use netlink kobject uevent sockets.
|
|
|
|
allow surfaceflinger self:netlink_kobject_uevent_socket *;
|
2012-04-04 16:11:16 +02:00
|
|
|
|
2012-07-12 19:26:15 +02:00
|
|
|
# Set properties.
|
|
|
|
allow surfaceflinger system_prop:property_service set;
|
2012-04-04 16:11:16 +02:00
|
|
|
allow surfaceflinger ctl_default_prop:property_service set;
|
2012-07-12 19:26:15 +02:00
|
|
|
|
2013-03-26 19:00:13 +01:00
|
|
|
# Use open files supplied by an app.
|
|
|
|
allow surfaceflinger appdomain:fd use;
|
|
|
|
allow surfaceflinger platform_app_data_file:file { read write };
|
|
|
|
allow surfaceflinger app_data_file:file { read write };
|