feat: configurable allow-list for dbus interfaces - #2763
Open
hojjatabdollahi wants to merge 1 commit into
Open
Conversation
hojjatabdollahi
force-pushed
the
hojjat/configurable-ei-allow-list
branch
from
August 20, 2026 20:26
7fcf990 to
8350352
Compare
hojjatabdollahi
force-pushed
the
hojjat/configurable-ei-allow-list
branch
from
August 20, 2026 20:26
8350352 to
821d1d2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on our conversation here.
This allows adding a toml file to
/usr/share/cosmic-comp/ei-clients.d/and whitelist more bus names. It leaves the hardcoded ones alone.The config is only read on startup, so after installing a new package, you have to log out and in for the app to have access.
For example my remote desktop app installs
/usr/share/cosmic-comp/ei-clients.d/20-cxrd.tomlwith this content:I also added
a11y_keyboad_monitoras another example of how to make hardcoded allowlists configurable.I didn't use cosmic-conf because I wanted user writable directories to be excluded.
And I didn't work on setting up a watcher and reloading in real time. It only loads on startup.