Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keepassxc: dbus: D-Bus library appears to be incorrectly set up #5929

Open
6 of 7 tasks
Beneter opened this issue Jul 29, 2023 · 2 comments
Open
6 of 7 tasks

keepassxc: dbus: D-Bus library appears to be incorrectly set up #5929

Beneter opened this issue Jul 29, 2023 · 2 comments

Comments

@Beneter
Copy link

Beneter commented Jul 29, 2023

Description

It seems that there is a regression in keepassxc.profile. After updating from firejail to firejail-git in Arch I receive the following error:
D-Bus library appears to be incorrectly set up: see the manual page for dbus-uuidgen to correct this issue. (Failed to open "/var/lib/dbus/machine-id": [...] Failed to open "/etc/machine-id": [...])

Potential Fix

When adding private-etc machine-id to keepassxc.local it is working fine. This was already fixed in #1637.
I am not providing a PR, as I am unaware if this fix should be applied at some common level instead.

Environment

  • Arch Linux
  • Firejail version 0.9.72.r9566.bf8229dde
  • Commit: ec657007b0b347afb48715c6ddfff3174431232a
  • Wayland
  • ZFS

Checklist

  • The issues is caused by firejail (i.e. running the program by path (e.g. /usr/bin/vlc) "fixes" it).
  • I can reproduce the issue without custom modifications (e.g. globals.local). Did not try
  • The program has a profile. (If not, request one in https://github.com/netblue30/firejail/issues/1139)
  • The profile (and redirect profile if exists) hasn't already been fixed upstream.
  • I have performed a short search for similar issues (to avoid opening a duplicate).
    • I'm aware of browser-allow-drm yes/browser-disable-u2f no in firejail.config to allow DRM/U2F in browsers.
  • I used --profile=PROFILENAME to set the right profile. (Only relevant for AppImages)

Log

Output of firejail /path/to/program

Reading profile /etc/firejail/keepassxc.profile
Reading profile /etc/firejail/keepassxc.local
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/globals.local
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-shell.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-run-common.inc
Reading profile /etc/firejail/whitelist-usr-share-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Reading profile /etc/firejail/whitelist-var-common.local
firejail version 0.9.73

Seccomp list in: !name_to_handle_at, check list: @default-keep, prelist: unknown,
Parent pid 850221, child pid 850225
3 programs installed in 48.96 ms
Private /etc installed in 12.62 ms
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Warning: not remounting /run/user/1000/doc
Seccomp list in: !name_to_handle_at, check list: @default-keep, prelist: unknown,
Child process initialized in 300.34 ms
QSocketNotifier: Can only be used with threads started with QThread
dbus[21]: D-Bus library appears to be incorrectly set up: see the manual page for dbus-uuidgen to correct this issue. (Failed to open "/var/lib/dbus/machine-id": Datei oder Verzeichnis nicht gefunden; Failed to open "/etc/machine-id": Datei oder Verzeichnis nicht gefunden)
  D-Bus not built with -rdynamic so unable to print a backtrace

Parent is shutting down, bye...

@rusty-snake
Copy link
Collaborator

Known bug with QT DBus library. Was reintroduced with 5d0822c. Better fix with etc groups would be private-etc @x11.

@rusty-snake
Copy link
Collaborator

5d0822c changed more profiles from private-etc ...,machine-id,... to a line that does not include x11. Even if the profile sets nosound.

@kmk3 kmk3 changed the title keepassxc.profile regression D-Bus library appears to be incorrectly set up keepassxc: dbus: D-Bus library appears to be incorrectly set up Aug 23, 2024
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

No branches or pull requests

2 participants