summaryrefslogtreecommitdiff
path: root/libs/gui/LayerState.cpp
diff options
context:
space:
mode:
author Todd Frederick <tfred@google.com> 2022-03-26 02:54:17 +0000
committer Todd Frederick <tfred@google.com> 2022-03-29 15:53:36 +0000
commit621533f895b30ca281e79a7a7c03eefd352359b5 (patch)
treea97c4c3b3bce1642143ddf3f12c16ec8b5ead0df /libs/gui/LayerState.cpp
parent171a64a823952b0ab210688a1d342e9882078400 (diff)
dumpstate: Close API FDs on exec
Set the external bugreport and screenshot FDs used in service API invocations as CLOEXEC to prevent them from being inherited by incident, which does not have SELinux permissions to access them. SELinux checks FDs inherited by a new process and reports audit events for unauthorized files. Bug: 218515584 Test: adb shell am broadcast -a com.android.internal.intent.action.BUGREPORT_REQUESTED -f 285212672 --ei android.intent.extra.BUGREPORT_TYPE 0 and check for SELinux denials Change-Id: I0b162f32fdff758953cf9262f85c55dc53525305 Merged-In: I69f420abf0c736149c2b03fb3ba47743dceff2d7
Diffstat (limited to 'libs/gui/LayerState.cpp')
0 files changed, 0 insertions, 0 deletions