Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc744ae5 authored by Devin Moore's avatar Devin Moore
Browse files

IServiceManager add checkServiceAccess to delegate sepolicy check

Android Virtualization Framework is in charge of VSOCK communications on
Android devices. Specifically, virtmgr manages these connection for AVF
clients that own VMs. It is forked from the owner and can get the
selinux SID of that owning process.
We want to check that the owning process has access to services that it
is requesting.
So we provide a new checkServiceAccess method that takes the SID of the
owner and checks if it has access to "find" a given service before
virtmgr provides access to it.

Flag: EXEMPT Clients of this new functionality will be flagged
Test: atest vm_accessor_test
Bug: 358427181
Change-Id: Ie389af62f1af541a554294d79f72b4c3b65c3e45
parent e226cba6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment