dbus permissions problem

Greg Wilson-Lindberg <GWilson-+8BKOH/0X5NWk0Htik3J/[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
I'm trying to run a program written in Qt and running on a custom Yocto Linux system on a Raspberry Pi4. My application is trying to change the timezone, and the Qt application uses a call to dbus to do this. The application works correctly if run as the root user but fails when run as a normal user. Using dbus-monitor the error is reported as a permissions.

I've searched the internet and the only things that I can find indicate that the org.freedesktop.timedate1.conf files in /usr/share/dbus-1/system.d and /etc/dbus-1/system.d control permissions. I first changed the /etc/dbus-1/system.d version of the file to add permissions for our user. This had no effect.

I then changed the default permissions in the /usr/share/dbus-1/system.d version of the file, and then added a section that specifically granted our user full permissions. None of these changes has had any effect.

Here are the changes that I added to both of the org.freedesktop.timedate1.conf files.

        <policy user="sakura">
                <allow own="org.freedesktop.timedate1"/> 
                <allow send_path="/org/freedesktop/timedate1"/>
                <allow send_destination="org.freedesktop.timedate1"/>
                <allow receive_sender="org.freedesktop.timedate1"/>
        </policy>

Here is the output from: dbus-monitor --system --profile
sig	1613424707.647232	4	:1.0	<none>	/org/freedesktop/timesync1	org.freedesktop.DBus.Properties	PropertiesChanged
mc	1613424707.737446	8	:1.11	org.freedesktop.timedate1	/org/freedesktop/timedate1	org.freedesktop.timedate1	SetTimezone
mc	1613424707.738188	8	:1.12	org.freedesktop.DBus	/org/freedesktop/DBus	org.freedesktop.DBus	GetConnectionUnixUser
mr	1613424707.738272	5	org.freedesktop.DBus	:1.12	8
err	1613424707.738731	9	:1.12	:1.11	8

Thanks in advance to anyone that can help me with this problem,

Greg Wilson-Lindberg
_______________________________________________
dbus mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.