Github messages for voidlinux
 help / color / mirror / Atom feed
From: mobinmob <mobinmob@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] connman: enable members of network group to control daemon via dbus
Date: Mon, 04 May 2020 21:17:18 +0200	[thread overview]
Message-ID: <20200504191718.nG_4Csh-kSoYtpC3hRV_9LyGgcpUhRTEOU_39Fx45NA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21618@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 612 bytes --]

There is an updated pull request by mobinmob against master on the void-packages repository

https://github.com/mobinmob/void-packages connman-fix
https://github.com/void-linux/void-packages/pull/21618

connman: enable members of network group to control daemon via dbus
The change enables users of the the network group to use every ui available for the connman daemon. I tested connman-gtk, connman-ncurses, connman-ui, econnman and cmst.
Configuration is based on the wiki article: https://wiki.voidlinux.org/Connman

A patch file from https://github.com/void-linux/void-packages/pull/21618.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-connman-fix-21618.patch --]
[-- Type: text/x-diff, Size: 1670 bytes --]

From d7424ef3385fb4b8655712295c8a29800f72c74a Mon Sep 17 00:00:00 2001
From: mobinmob <mobinmob@disroot.org>
Date: Mon, 4 May 2020 22:04:57 +0300
Subject: [PATCH] connman: allow members of network group to control daemon via
 dbus

---
 srcpkgs/connman/files/connmand.conf | 9 +++++++++
 srcpkgs/connman/template            | 3 ++-
 2 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/connman/files/connmand.conf

diff --git a/srcpkgs/connman/files/connmand.conf b/srcpkgs/connman/files/connmand.conf
new file mode 100644
index 00000000000..5da2de429ca
--- /dev/null
+++ b/srcpkgs/connman/files/connmand.conf
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?> 
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN" "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+  <policy group="network">
+   <allow own="net.connman"/>
+   <allow send_destination="net.connman"/>
+   <allow send_interface="net.connman"/>
+  </policy>
+</busconfig>
diff --git a/srcpkgs/connman/template b/srcpkgs/connman/template
index 46d7a5eb018..3421e1e8591 100644
--- a/srcpkgs/connman/template
+++ b/srcpkgs/connman/template
@@ -1,7 +1,7 @@
 # Template file for 'connman'
 pkgname=connman
 version=1.38
-revision=1
+revision=2
 build_style=gnu-configure
 configure_args="--enable-polkit --enable-client --enable-pie --enable-ethernet
  --enable-wifi --enable-bluetooth --enable-loopback --enable-nmcompat
@@ -33,6 +33,7 @@ post_install() {
 	# Install the client connmanctl.
 	vbin client/connmanctl
 	vsv connmand
+	vinstall ${FILESDIR}/connmand.conf 755 etc/dbus-1/system.d/
 }
 
 connman-devel_package() {

  reply	other threads:[~2020-05-04 19:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-04 19:10 [PR PATCH] " mobinmob
2020-05-04 19:17 ` mobinmob [this message]
2020-05-05 10:29 ` connman: allow " mobinmob
2020-05-05 10:52 ` Duncaen
2020-05-05 11:29 ` [PR PATCH] [Updated] " mobinmob
2020-05-05 11:31 ` mobinmob
2020-05-05 14:28 ` [PR PATCH] [Merged]: " Gottox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200504191718.nG_4Csh-kSoYtpC3hRV_9LyGgcpUhRTEOU_39Fx45NA@z \
    --to=mobinmob@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).