diff --git a/private/domain.te b/private/domain.te index 692c96294..769264b1d 100644 --- a/private/domain.te +++ b/private/domain.te @@ -668,6 +668,7 @@ enforce_debugfs_restriction(` userdebug_or_eng(` -init -hal_dumpstate + -incidentd ') } { debugfs_type userdebug_or_eng(`-debugfs_kcov') diff --git a/private/incidentd.te b/private/incidentd.te index e86b3bfd5..bf98d31fc 100644 --- a/private/incidentd.te +++ b/private/incidentd.te @@ -29,9 +29,7 @@ unix_socket_send(incidentd, statsdw, statsd) allow incidentd proc_pagetypeinfo:file r_file_perms; # section id 2002, allow reading /d/wakeup_sources -no_debugfs_restriction(` - allow incidentd debugfs_wakeup_sources:file r_file_perms; -') +userdebug_or_eng(`allow incidentd debugfs_wakeup_sources:file r_file_perms'); # section id 2003, allow executing top allow incidentd proc_meminfo:file { open read };