mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
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:
@@ -92,6 +92,9 @@ impl SePolicy {
|
|||||||
allow(svcmgr, [proc], ["process"], ["getattr"]);
|
allow(svcmgr, [proc], ["process"], ["getattr"]);
|
||||||
allow(["domain"], [proc], ["binder"], ["call", "transfer"]);
|
allow(["domain"], [proc], ["binder"], ["call", "transfer"]);
|
||||||
|
|
||||||
|
// Let logd get root process attr
|
||||||
|
allow(["logd"], [proc], ["process"], ["getattr"]);
|
||||||
|
|
||||||
// Other common IPC
|
// Other common IPC
|
||||||
allow(["domain"], [proc], ["process"], ["sigchld"]);
|
allow(["domain"], [proc], ["process"], ["sigchld"]);
|
||||||
allow(["domain"], [proc], ["fd"], ["use"]);
|
allow(["domain"], [proc], ["fd"], ["use"]);
|
||||||
|
|||||||
Reference in New Issue
Block a user