Return-Path: Received: from mail.kmu-office.ch (mail.kmu-office.ch [178.209.48.109]) by mail.openembedded.org (Postfix) with ESMTP id BF0E77C1F3 for ; Thu, 17 Jan 2019 19:09:56 +0000 (UTC) Received: from webmail.kmu-office.ch (unknown [IPv6:2a02:418:6a02::a3]) by mail.kmu-office.ch (Postfix) with ESMTPSA id F0A785C0187; Thu, 17 Jan 2019 20:09:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=agner.ch; s=dkim; t=1547752197; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lj6TX2KC+ia6Kbck7p5t1TzYwN249yK1MVYhjRiBm9k=; b=qzob3rAtqtiFK+czjv4VKuaTTKm8N+Nr7uGEIXQJ9LuqrDZiJPAkUXmjk1YOm1D/q50NW2 G6nFeWuwtV4cjjg0liSDYGDbdVhu+n3J7bwRYC3uIHxMjmX5cCKkcGQpB9dUh8AznpRGtJ mmUOJgoqaXFw3ZBVaiLPn5OdqbWUYaw= MIME-Version: 1.0 Date: Thu, 17 Jan 2019 20:09:56 +0100 From: Stefan Agner To: =?UTF-8?Q?Andreas_M=C3=BCller?= In-Reply-To: References: <20190117162629.47677-1-stefan@agner.ch> <20190117162629.47677-2-stefan@agner.ch> Message-ID: <8079727a69d7f33cc1936930d52fb55d@agner.ch> X-Sender: stefan@agner.ch User-Agent: Roundcube Webmail/1.3.7 Cc: Stefan Agner , openembeded-devel Subject: Re: [PATCH 2/5] networkmanager: introduce polkit package config X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2019 19:09:57 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 17.01.2019 18:50, Andreas Müller wrote: > On Thu, Jan 17, 2019 at 5:27 PM Stefan Agner wrote: > Hi Stefan, > > sorry but don't like this patch as is: >> >> From: Stefan Agner >> >> Currently polkit is enabled if systemd is in package config. Those >> two things are orthogonal: NetworkManager can be used with systemd >> and without polkit just fine. > Did you test this (=change networkmanager connections settings) as an > unpriviledged user? Works as expected: need to be root to change connection settings :-) We plan to use D-Bus and D-Bus policies ( tags) to allow some settings to unpriviledged users/groups. >> >> Introduce a new polkit package config and enable it depending on >> whether polkit is in DISTRO_FEATURES. > > * it changes the current behaviour and the default suggested by > configure.ac: 'we usually compile with polkit support.' and > meson.build sets polkit by default. Yes, this changes default behavior. I did not do that lightly, but I think it is sensible to have a global policy on polkit, and also let NetworkManager follow it. I guess the change in default behavior needs to be pointed out in the documentation e.g. in the chapter "Moving to the Yocto Project 2.7 Release". Throughout OpenEmbedded we had vastly different behavior wrt polkit. ConnMan disables it by default without any option to enable it. Quite some packages make it dependent on systemd, some have just a local package config polkit etc... We have a WiFi capable headless device with restricted flash and would like to use NetworkManager. Using polkit pulls in mozjs, which is rather large. We do not need interactive authentication capabilities, since our device does not allow direct user interaction... > * as far as I know there is no polkit DISTRO_FEATURE in metaverse yet. Hm, yes, we definitely should add polkit. How can I do this? > > I suggest to add polkit PACKAGECONFIG if systemd is in DISTRO_FEATURES > - if you don't want polkit you can add a PACKAGECONFIG_remove = > "polkit" somewhere. Yes, I know that. We had this in place so far. However, rather than having a bunch of PACKAGECONFIG, I'd rather have a distro wide policy on polkit. I did send an email to oe-core with a cover letter, and since that patch got merged, I was assuming that polkit as a distro policy is the way to go. http://lists.openembedded.org/pipermail/openembedded-core/2019-January/278021.html -- Stefan