Skip to content

feat: configurable allow-list for dbus interfaces - #2763

Open
hojjatabdollahi wants to merge 1 commit into
pop-os:masterfrom
hojjatabdollahi:hojjat/configurable-ei-allow-list
Open

feat: configurable allow-list for dbus interfaces#2763
hojjatabdollahi wants to merge 1 commit into
pop-os:masterfrom
hojjatabdollahi:hojjat/configurable-ei-allow-list

Conversation

@hojjatabdollahi

Copy link
Copy Markdown
Contributor

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.toml with this content:

[[ei.client]]
bus_name = "io.github.hojjatabdollahi.cxrd"
device_types = ["keyboard", "pointer", "touchscreen"]

I also added a11y_keyboad_monitor as 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.


  • I have disclosed use of any AI generated code in my commit messages.
    • If you are using an LLM, and do not fully understand the changes it is making to the code base, do not create a PR.
    • In our experience, AI generated code often results in overly complex code that lacks enough context for a proper fix or feature inclusion. This results in considerably longer code reviews. Due to this, AI authored or partially authored PRs may be closed without comment.
  • I understand these changes in full and will be able to respond to review comments.
  • My change is accurately described in the commit message.
  • My contribution is tested and working as described.
  • I have read the Developer Certificate of Origin and certify my contribution under its conditions.

@hojjatabdollahi
hojjatabdollahi force-pushed the hojjat/configurable-ei-allow-list branch from 7fcf990 to 8350352 Compare August 20, 2026 20:26
@hojjatabdollahi
hojjatabdollahi force-pushed the hojjat/configurable-ei-allow-list branch from 8350352 to 821d1d2 Compare August 20, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant