andrew-bibb / cmst

QT GUI for Connman
174 stars 37 forks source link

Dbus permissions error #191

Closed jamtur01 closed 5 years ago

jamtur01 commented 6 years ago

I'm seeing an issue where cmst won't let me load VPN configurations.

screenshot_20180831_002450

I've Google'd about and found mention of the Dbus policy needing netdev not network on Debian/Ubuntu but I have that fix in place and I am a member of the netdev group.

<busconfig>
    <!-- Only root can own roothelper -->
    <policy user="root">
        <allow own="org.cmst.roothelper"/>
        <allow send_destination="org.cmst.roothelper"
               send_interface="org.cmst.roothelper"/>
    </policy>
    <policy group="netdev">
        <allow send_destination="org.cmst.roothelper"
               send_interface="org.cmst.roothelper"/>
    </policy>
</busconfig>

My host is Ubuntu 18.04 running the cmst 2018.01.06-3 amd64 package.

andrew-bibb commented 6 years ago

How exactly did you install the program? Your word "fix" makes me wonder because there should be nothing to fix. That file should have been installed automatically. I'm asking because there are other files that need to be put here and there for the roothelpers to work and if this was done manually that is probably the issue.

I saw your other issues and they are odd, I've not seen them at all before. I'll see what I can do, but I've just added a note to the readme on the front page you may want to check out explaining the time (I don't have) at the moment to help.

jamtur01 commented 6 years ago

I installed it via the stock Debian package. The reason I mentioned "the fix" is that Googling around indicated that this error had previously occurred because the wrong group was in the policy. This has regressed before that I can see - so I wanted to mentioned I had confirmed it had not happened again.

agaida commented 6 years ago

It was: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893276 Fix: https://salsa.debian.org/lxqt-team/cmst/commit/9f2f174148924e006ce8c8d95389ae605f0cc1a2

Should be fixed in cmst with https://github.com/andrew-bibb/cmst/pull/182

EDIT: I guess i would have a very hard time to convince the release team that this fits as an stable upgrade via security fixes - so just use the testing version should be enough.

jamtur01 commented 6 years ago

So ... my issue is that DESPITE that (see my policy above). I get the same error. I am a bit bewildered as to why it's happening. I'll take another look I guess.

MrFoxPro commented 1 year ago

@andrew-bibb I have same exception on my Arch laptop. I tried both AUR packages: https://aur.archlinux.org/packages/cmst https://aur.archlinux.org/packages/cmst-git

MrFoxPro commented 1 year ago

Seems like adding yourself to group network fixes it sudo usermod -a -G network foxpro