connman permissions

  • Open
  • quality assurance status badge
One participant
  • Christopher Howard
Submitted by
Christopher Howard
Christopher Howard wrote on 22 Mar 2021 18:16
(name . bug-guix)(address .
Short description: In Guix, controlling connman seems to require root
permissions, but a non-root user should be able to control it.

Longer description: I am running a DE with slim + elogind + lxqt +
connman. When logged in to lxqt, I can run applications like csmt and
connmanctl to control connman, but if I start them as a non-root user,
I get a chain of dbus permission errors and am not able to see or
change network settings.

I have attached my system config file as well as info about my Guix
commit and system hardware.

Looking at Guix source, it appears that lxqt-desktop-service-type has
polkit settings, but I'm not seeing something similiar in the source
for connman package (connman.scm). I checked with the folks on #connman
and they said that connman does provide a polkit policy file which
should be working in conjunction with elogind, the standard location
being /usr/share/polkit-1/actions/net.connman.policy.

It could just be a problem with my system config definition, of course,
but it is not obvious to me, and it didn't seem to be anything obvious
to the folks on #guix IRC.
Attachment: file
OS: Guix System 1ab03fb74505458e7754dce338a5da29dc754d80 i686
Host: CF-30CTQAZBM 001
Kernel: 5.11.7-gnu
Uptime: 2 days, 19 hours, 4 mins
Packages: 71 (guix-system), 11 (guix-user)
Shell: bash 5.0.16
Resolution: 1024x768
DE: LXQt 0.15.0
Terminal: qterminal
Terminal Font: Monospace 12
CPU: Genuine Intel L2400 (2) @ 1.667GHz
GPU: Intel Mobile 945GM/GMS/GME, 943/940GML Express
Memory: 203MiB / 3013MiB
(use-modules (gnu)
(rnrs lists))
(use-service-modules desktop networking ssh xorg)

(locale "en_US.utf8")
(timezone "America/Anchorage")
(keyboard-layout (keyboard-layout "us" #:options '("ctrl:swapcaps")))
(host-name "mithril")
(users (cons* (user-account
(name "christopher")
(comment "Christopher Howard")
(group "users")
(home-directory "/home/christopher")
'("wheel" "netdev" "audio" "video" "dialout" "disk" "floppy" "cdrom" "kvm")))
(specification->package+output "bind" "utils"))
(map specification->package
(list (service lxqt-desktop-service-type)
(service slim-service-type
(keyboard-layout keyboard-layout)))))
(service elogind-service-type)
(service openssh-service-type)
(service connman-service-type)
(service wpa-supplicant-service-type))
(bootloader grub-bootloader)
(target "/dev/sda")
(keyboard-layout keyboard-layout)))
(kernel-arguments (cons "cpufreq.default_governor=conservative" %default-kernel-arguments))
(cons* (file-system
(mount-point "/")
(uuid "981f1ff0-cb4f-446d-81ed-be6bf64a139e"
(type "ext4"))
Generation 3 Mar 19 2021 02:21:25 (current)
guix 1ab03fb
branch: master
commit: 1ab03fb74505458e7754dce338a5da29dc754d80