| <!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" |
| "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd"> |
| <!-- |
| Copyright 2021 The ChromiumOS Authors |
| Use of this source code is governed by a BSD-style license that can be |
| found in the LICENSE file. |
| --> |
| <busconfig> |
| <policy user="resourced"> |
| <allow own="org.chromium.ResourceManager" /> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager"/> |
| <allow send_destination="org.chromium.SwapManagement" |
| send_interface="org.chromium.SwapManagement" |
| send_member="SwapSetSwappiness"/> |
| <!-- |
| `RetrievePrimarySession` and `GetVmInfo` are only needed for |
| vm_grpc module. If resourced crashes and is respawned, |
| resourced will need the borealis cid to reconnect the grpc server. |
| --> |
| <allow send_destination="org.chromium.VmConcierge" |
| send_interface="org.chromium.VmConcierge" |
| send_member="GetVmInfo"/> |
| <allow send_destination="org.chromium.SessionManager" |
| send_interface="org.chromium.SessionManagerInterface" |
| send_member="RetrievePrimarySession"/> |
| </policy> |
| |
| <!-- Chrome and VMs talk to org.chromium.ResourceManager --> |
| <policy user="chronos"> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="GetAvailableMemoryKB"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="GetForegroundAvailableMemoryKB"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="GetGameMode"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="GetMemoryMarginsKB"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="SetGameMode"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="SetGameModeWithTimeout"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="SetMemoryMarginsBps"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="GetComponentMemoryMarginsKB"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="SetProcessState"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="SetThreadState"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="ReportBrowserProcesses"/> |
| </policy> |
| <policy user="crosvm"> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="GetAvailableMemoryKB"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="GetForegroundAvailableMemoryKB"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="GetGameMode"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="GetMemoryMarginsKB"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="GetComponentMemoryMarginsKB"/> |
| </policy> |
| <policy user="cras"> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="SetRTCAudioActive"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="GetRTCAudioActive"/> |
| </policy> |
| <policy user="power"> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="SetFullscreenVideoWithTimeout"/> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager" |
| send_member="GetFullscreenVideo"/> |
| </policy> |
| |
| <!-- For debugging --> |
| <policy user="root"> |
| <allow own="org.chromium.ResourceManager" /> |
| <allow send_destination="org.chromium.ResourceManager" |
| send_interface="org.chromium.ResourceManager"/> |
| </policy> |
| |
| </busconfig> |