Nick Kralevich | 04740e0 | 2013-12-13 20:11:17 -0800 | [diff] [blame] | 1 | allow surfaceflinger { knv_device }:chr_file rw_file_perms; |
rpcraig | 4afe6a0 | 2013-11-21 19:02:10 -0500 | [diff] [blame] | 2 | allow surfaceflinger { sysfs_devices_system_cpu sysfs_devices_tegradc }:file rw_file_perms; |
| 3 | allow surfaceflinger sysfs_devices_tegradc:dir r_dir_perms; |
| 4 | allow surfaceflinger sysfs_devices_tegradc:lnk_file { open getattr read }; |
Robert Craig | 5dbd0b2 | 2013-03-27 06:12:51 -0400 | [diff] [blame] | 5 | allow surfaceflinger sysfs_devices_system_cpu:dir w_dir_perms; |
Stephen Smalley | 7b97740 | 2014-01-13 09:01:43 -0500 | [diff] [blame] | 6 | |
| 7 | # Kernel bug for Linux < 3.3: sysfs inodes can lose their security context |
| 8 | # and revert to the base sysfs type. |
| 9 | allow surfaceflinger sysfs:file write; |