Dmitry Shmidt | 4cb6c2b | 2017-08-29 15:05:18 -0700 | [diff] [blame] | 1 | type debugfs_kgsl, debugfs_type, fs_type; |
| 2 | |
| 3 | allow domain debugfs_kgsl:dir search; |
| 4 | |
| 5 | allow hal_memtrack debugfs_kgsl:dir search; |
| 6 | allow hal_memtrack debugfs_kgsl:file { open read getattr }; |
| 7 | |
| 8 | # Memtrack reads proc/<pid>/cmdline to check if process is surfaceflinger. |
| 9 | # Grant access if that's the case; don't log denials for other processes. |
| 10 | allow hal_memtrack surfaceflinger:file read; |
| 11 | dontaudit hal_memtrack { domain -surfaceflinger}:file read; |