Allow logd to access root process attributes (#10269)

Vivo's logd first tries to get attr of the process which creates log socket. If it fails, logd will deny forwarding log stream.
This commit is contained in:
Wang Han
2026-11-24 14:21:27 +08:00
committed by GitHub
parent 20ce5a9c1f
commit a212cd92b7
+3
View File
@@ -92,6 +92,9 @@ impl SePolicy {
allow(svcmgr, [proc], ["process"], ["getattr"]);
allow(["domain"], [proc], ["binder"], ["call", "transfer"]);
// Let logd get root process attr
allow(["logd"], [proc], ["process"], ["getattr"]);
// Other common IPC
allow(["domain"], [proc], ["process"], ["sigchld"]);
allow(["domain"], [proc], ["fd"], ["use"]);