summaryrefslogtreecommitdiff
path: root/tools/aapt2/Main.cpp
diff options
context:
space:
mode:
author Wenhao Wang <wenhaowang@google.com> 2022-01-11 22:29:18 -0800
committer Wenhao Wang <wenhaowang@google.com> 2022-01-19 16:49:49 -0800
commit256519a529fc7f742dd962d859ab1ab7bdc0b033 (patch)
treee7458fcfad5352c93f227eb7e2c03a9e2f50d96e /tools/aapt2/Main.cpp
parent5af00f9e0fa52b5f6c8979935c0a9c06dddfc3f0 (diff)
Add logcat service to track logd access
The LogcatManagerService monitors all privileged (in AID_LOG group) access to logd. Only Root and System Server can read the logd data without tracking. Whenever the logd recieve privileged read data request, the request is forwarded to the LogcatManagerService. The LogcatManagerService can approve or decline the request via binder RPC on logd service. The binder call is enforced by sepolicy. That means only LogcatManagerService can use the logd binder service. And only logd can use the logcat binder service. The next step will add user consent requirement for the logd access. Bug: 197901557 Test: Reboot the device, then run "adb logcat" multiple times both during the booting and after the booting. The control flow goes correctly as we expected. Ignore-AOSP-First: pending fix for logcat privacy issue Change-Id: I5e225b65357e7bfacd5c6c9cb4fab5f309803193
Diffstat (limited to 'tools/aapt2/Main.cpp')
0 files changed, 0 insertions, 0 deletions