Skip to content

Commit 996e744

Browse files
Kalesh SinghMichael Bestas
Kalesh Singh
authored and
Michael Bestas
committed
Sepolicy for dumsys suspend_control in bugreport
Bug: 155836352 Test: adb shell am bug-report && check logcat for denials Change-Id: I8b65ea7c798121679bf27ce667c787a8dcbf5aae (cherry picked from commit 215751a)
1 parent 5a9e45a commit 996e744

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

prebuilts/api/30.0/private/system_suspend.te

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ r_dir_file(system_suspend, sysfs_wakeup)
1616
# To resolve arbitrary sysfs paths from /sys/class/wakeup/* symlinks.
1717
allow system_suspend sysfs_type:dir search;
1818

19+
# For adding `dumpsys syspend_control` output to bugreport
20+
allow system_suspend dumpstate:fd use;
21+
allow system_suspend dumpstate:fifo_file write;
22+
1923
neverallow {
2024
domain
2125
-atrace # tracing

private/system_suspend.te

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ r_dir_file(system_suspend, sysfs_wakeup)
1616
# To resolve arbitrary sysfs paths from /sys/class/wakeup/* symlinks.
1717
allow system_suspend sysfs_type:dir search;
1818

19+
# For adding `dumpsys syspend_control` output to bugreport
20+
allow system_suspend dumpstate:fd use;
21+
allow system_suspend dumpstate:fifo_file write;
22+
1923
neverallow {
2024
domain
2125
-atrace # tracing

0 commit comments

Comments
 (0)