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

Permission denied #157

Open
ShireCiel opened this issue Oct 31, 2024 · 3 comments
Open

Permission denied #157

ShireCiel opened this issue Oct 31, 2024 · 3 comments
Labels
bug Something isn't working unconfirmed

Comments

@ShireCiel
Copy link

  • Linux-distro (kernel version): 6.1.44
  • Desktop Environment (KDE/GNOME etc.): GNOME
  • Qt Version: 5
  • KDiskMark Version: 3.1.4
  • FIO Version: fio-3.33

Description:

Any user start bench with error: Failed to execute program dev.jonmagon.kdiskmark.helperinterface: Permission denied.
Even create a dir with 777 permission, or run as root user

Steps To Reproduce:

kdiskmark start problem
run benchmark
got permission denied error.
4555

@ShireCiel ShireCiel added bug Something isn't working unconfirmed labels Oct 31, 2024
@jadoc
Copy link

jadoc commented Nov 10, 2024

There is some sort of mismatch between the dbus configuration for the helper service and the client application. I can successfully call the helper methods manually:

$ dbus-send --system --dest=dev.jonmagon.kdiskmark.helperinterface --print-reply /Helper dev.jonmagon.kdiskmark.helper.stopCurrentTask
method return time=1731237345.853225 sender=:1.155 -> destination=:1.157 serial=5 reply_serial=2
   array [
   ]

@jadoc
Copy link

jadoc commented Nov 10, 2024

Actually, I do get a permission denied when I try to initSession

$ dbus-send --system --dest=dev.jonmagon.kdiskmark.helperinterface --print-reply /Helper dev.jonmagon.kdiskmark.helper.initSession
Error org.freedesktop.DBus.Error.AccessDenied: Permission denied

We may be experiencing different problems. You may be having trouble with dbus service configuration, and I may be having trouble with polkit in some way.

@jadoc
Copy link

jadoc commented Nov 10, 2024

Alright, I think my problem is that I'm running under Chrome Remote Desktop and that's breaking PolkitQt1::Authority::AllowUserInteraction somehow. I'm guessing, the helper is unable to find my display server to prompt for authorization. If this is unrelated to the original bug, I will go open a separate bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

2 participants