blob: e4ade6cd3bf26a013127601a39a63ab38563409a [file] [log] [blame]
Biswajit Paul977e5062014-10-14 20:34:55 -07001allow surfaceflinger sysfs_graphics:file rw_file_perms;
Avijit Kanti Das808ae2f2014-10-21 17:11:11 -07002
Nitesh Gupta29d4b6a2015-01-16 17:34:55 +05303# Allow reading/writing to 'persist/display/*'
4allow surfaceflinger persist_display_file:dir rw_dir_perms;
5allow surfaceflinger persist_display_file:file create_file_perms;
6
7# Allow only directory search to '/persist'
8allow surfaceflinger persist_file:dir search;
9
c_yonggace732a22016-01-18 12:58:51 +080010# Use open file provided by poweroffhandler
11binder_call(surfaceflinger, poweroffhandler);
12
Tushar Janefalkar87c1f922014-10-21 15:16:12 -070013binder_call(surfaceflinger, location)
Dinesh K Garg09a2f192014-10-31 16:28:22 -070014binder_call(surfaceflinger, tee)
Dilip Gudlur500f9112014-12-27 23:42:59 -080015
Naseer Ahmed04dbc842017-11-02 19:20:16 -040016hal_client_domain(surfaceflinger, hal_display_config)
17
Bruno Martinsf689f7f2018-09-16 23:23:14 +010018# access to /data/vendor/display for dumping input frames
19allow surfaceflinger display_vendor_data_file:dir create_dir_perms;
20allow surfaceflinger display_vendor_data_file:file create_file_perms;
Biswajit Paul28439f92015-07-15 13:28:27 -070021
22# Allows access to dpps daemon in calibration mode
Ravi Kumar Siddojigaric7def122017-06-13 00:49:19 +053023#unix_socket_connect(surfaceflinger, pps, mm-pp-daemon)
Avijit Kanti Dase5656e32015-09-09 16:53:28 -070024
25r_dir_file(surfaceflinger, firmware_file)
taozhangaf844b82015-11-04 14:50:25 +080026
27#Allow access to fastmmi
28binder_call(surfaceflinger, mmi)
Suman Mukherjeeb91bb742016-08-03 14:16:23 +053029
30#Allow access to cameraserver service
31allow surfaceflinger cameraserver_service:service_manager find;
Abhinav Sohane11240192017-09-27 12:20:50 +053032
33#Allow access to binder callback's to camera hal
34binder_call(surfaceflinger, hal_camera_default)
35
Ethan Chenfff950d2018-09-24 23:28:05 -070036allow surfaceflinger qdisplay_service:service_manager { add find };
37
Biswajit Paul277acbb2016-07-20 12:02:14 -070038#diag
39userdebug_or_eng(`
40 diag_use(surfaceflinger)
41')
Biswajit Paulf63bd142017-03-16 16:41:02 -070042
43allow surfaceflinger {
44 debug_gralloc_prop
45 sdm_idle_time_prop
Biswajit Paulf63bd142017-03-16 16:41:02 -070046}:file r_file_perms;
Sahil Madeka1dd4eee2017-05-01 16:45:49 -070047
48#set qemu.gles prop
49set_prop(surfaceflinger, qemu_gles_prop)