polkit: add polkit as a required distro feature
PATCH 1/5 polkit: add polkit as a required distro feature
From: Stefan Agner <[email protected]>
Make sure polkit is in DISTRO_FEATURERS if this package is being installed. This will make sure that people who do use polkit in their image also do enabled the recently introduced distro feature polkit in their distro.
--- meta-oe/recipes-extended/polkit/polkit_0.115.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-oe/recipes-extended/polkit/polkit_0.115.bb +2 -0
@@ -9,6 +9,8 @@ DEPENDS = "expat glib-2.0 intltool-native mozjs" inherit autotools gtk-doc pkgconfig useradd systemd gobject-introspection +REQUIRED_DISTRO_FEATURES = "polkit" + PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', \ bb.utils.contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d), d)} \
Signature · 1 line
2.13.6
PATCH 2/5 networkmanager: introduce polkit package config
From: Stefan Agner <[email protected]>
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.
Introduce a new polkit package config and enable it depending on whether polkit is in DISTRO_FEATURES.
--- .../recipes-connectivity/networkmanager/networkmanager_1.14.4.bb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
meta-networking/recipes-connectivity/networkmanager/networkmanager_1.14.4.bb +3 -4
@@ -16,7 +16,6 @@ DEPENDS = " \ util-linux \ libndp \ libnewt \ - polkit \ jansson \ curl \ "
@@ -69,13 +68,13 @@ do_compile_prepend() { PACKAGECONFIG ??= "nss ifupdown dhclient dnsmasq \ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', bb.utils.contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d), d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', '${BLUEZ}', '', d)} \ - ${@bb.utils.filter('DISTRO_FEATURES', 'wifi', d)} \ + ${@bb.utils.filter('DISTRO_FEATURES', 'wifi polkit', d)} \ " PACKAGECONFIG[systemd] = " \ - --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd --enable-polkit, \ + --with-systemdsystemunitdir=${systemd_unitdir}/system --with-session-tracking=systemd, \ --without-systemdsystemunitdir, \ - polkit \ " +PACKAGECONFIG[polkit] = "--enable-polkit --enable-polkit-agent,--disable-polkit --disable-polkit-agent,polkit" PACKAGECONFIG[bluez5] = "--enable-bluez5-dun,--disable-bluez5-dun,bluez5" # consolekit is not picked by shlibs, so add it to RDEPENDS too PACKAGECONFIG[consolekit] = "--with-session-tracking=consolekit,,consolekit,consolekit"
Signature · 1 line
2.13.6
Re: [PATCH 2/5] networkmanager: introduce polkit package config
On Thu, Jan 17, 2019 at 5:27 PM Stefan Agner <[email protected]> wrote:
Hi Stefan,
sorry but don't like this patch as is:
Quoted 6 lines
From: Stefan Agner <[email protected]>
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?
Quoted 3 lines
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.
* as far as I know there is no polkit DISTRO_FEATURE in metaverse yet.
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.
Andreas
Re: [PATCH 2/5] networkmanager: introduce polkit package config
Quoted 5 lines · Andreas Müller
On Thu, Jan 17, 2019 at 5:27 PM Stefan Agner <[email protected]> wrote:
Hi Stefan,sorry but don't like this patch as is:
Quoted 1 line
Quoted 7 lines
Quoted 5 lines
From: Stefan Agner <[email protected]>
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 (<policy> tags) to allow some settings to unpriviledged users/groups.
Quoted 7 lines
Quoted 3 lines
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...
Quoted 1 line
* as far as I know there is no polkit
DISTRO_FEATUREin metaverse yet.
Hm, yes, we definitely should add polkit. How can I do this?
Quoted 4 lines
I suggest to add polkit PACKAGECONFIG if systemd is in
DISTRO_FEATURES
- if you don't want polkit you can add aPACKAGECONFIG_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
Re: [PATCH 2/5] networkmanager: introduce polkit package config
Quoted 54 lines · Stefan Agner
Quoted 5 lines · Andreas Müller
On Thu, Jan 17, 2019 at 5:27 PM Stefan Agner <[email protected]> wrote:
Hi Stefan,sorry but don't like this patch as is:
Quoted 1 line
Quoted 7 lines
Quoted 5 lines
From: Stefan Agner <[email protected]>
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 (<policy> tags) to allow some settings to unpriviledged users/groups.
Quoted 7 lines
Quoted 3 lines
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...
Quoted 1 line
* as far as I know there is no polkit
DISTRO_FEATUREin metaverse yet.Hm, yes, we definitely should add polkit. How can I do this?
Quoted 4 lines
I suggest to add polkit PACKAGECONFIG if systemd is in
DISTRO_FEATURES
- if you don't want polkit you can add aPACKAGECONFIG_remove= "polkit" somewhere.
Quoted 8 lines
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
Am aware of what you want: Reduce image size.
Still don't like changing defaults because settings cannot be changed by unprivileged users (and machines connected to network should not run as root and this is what might be the consequence for lazy people). And this would be another OE/Yocto default many other distros don't have. BTW: The connection to systemd DISTRO_FEATURE was introduced by me and there was a reason for it - but I don't remember
- it is long time ago and maybe it is not necessary any more.
How about inverting the logic: As long as no 'extra-setting' is done, polkit is enabled by default (as suggested by the packets). Would a DISTRO feature 'no-polkit' be something you could reach your target?
Andreas
Re: [PATCH 2/5] networkmanager: introduce polkit package config
In reply to Stefan AgnerQuoted 54 lines · Stefan Agner
Quoted 5 lines · Andreas Müller
On Thu, Jan 17, 2019 at 5:27 PM Stefan Agner <[email protected]> wrote:
Hi Stefan,sorry but don't like this patch as is:
Quoted 1 line
Quoted 7 lines
Quoted 5 lines
From: Stefan Agner <[email protected]>
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 (<policy> tags) to allow some settings to unpriviledged users/groups.
Quoted 7 lines
Quoted 3 lines
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...
Quoted 1 line
* as far as I know there is no polkit
DISTRO_FEATUREin metaverse yet.Hm, yes, we definitely should add polkit. How can I do this?
Quoted 4 lines
I suggest to add polkit PACKAGECONFIG if systemd is in
DISTRO_FEATURES
- if you don't want polkit you can add aPACKAGECONFIG_remove= "polkit" somewhere.
Quoted 8 lines
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
Ahh - I see am too late in the game - decision was already made - go on and forget my last email.
Andreas
Re: [PATCH 2/5] networkmanager: introduce polkit package config
Quoted 57 lines · Andreas Müller
Quoted 56 lines · Stefan Agner
Quoted 5 lines · Andreas Müller
On Thu, Jan 17, 2019 at 5:27 PM Stefan Agner <[email protected]> wrote:
Hi Stefan,sorry but don't like this patch as is:
Quoted 1 line
Quoted 7 lines
Quoted 5 lines
From: Stefan Agner <[email protected]>
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 (<policy> tags) to allow some settings to unpriviledged users/groups.
Quoted 7 lines
Quoted 3 lines
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...
Quoted 1 line
* as far as I know there is no polkit
DISTRO_FEATUREin metaverse yet.Hm, yes, we definitely should add polkit. How can I do this?
Quoted 4 lines
I suggest to add polkit PACKAGECONFIG if systemd is in
DISTRO_FEATURES
- if you don't want polkit you can add aPACKAGECONFIG_remove= "polkit" somewhere.Yes, I know that. We had this in place so far.
Quoted 8 lines
Quoted 6 lines
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.htmlAhh - I see am too late in the game - decision was already made - go on and forget my last email.
Probably should have sent out this patch set changing meta-oe stuff at the same time to get the broader overview, sorry about that.
NetworkManager is really the most drastic change here, since this is a prominent package where the change changes the current default. So if you have any suggestion to ease the transition, I am happy to look into it.
--
Stefan
Re: [PATCH 2/5] networkmanager: introduce polkit package config
Quoted 68 lines · Stefan Agner
Quoted 57 lines · Andreas Müller
Quoted 56 lines · Stefan Agner
Quoted 5 lines · Andreas Müller
On Thu, Jan 17, 2019 at 5:27 PM Stefan Agner <[email protected]> wrote:
Hi Stefan,sorry but don't like this patch as is:
Quoted 1 line
Quoted 7 lines
Quoted 5 lines
From: Stefan Agner <[email protected]>
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 (<policy> tags) to allow some settings to unpriviledged users/groups.
Quoted 7 lines
Quoted 3 lines
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...
Quoted 1 line
* as far as I know there is no polkit
DISTRO_FEATUREin metaverse yet.Hm, yes, we definitely should add polkit. How can I do this?
Quoted 4 lines
I suggest to add polkit PACKAGECONFIG if systemd is in
DISTRO_FEATURES
- if you don't want polkit you can add aPACKAGECONFIG_remove= "polkit" somewhere.Yes, I know that. We had this in place so far.
Quoted 8 lines
Quoted 6 lines
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.htmlAhh - I see am too late in the game - decision was already made - go on and forget my last email.
Quoted 8 lines
Probably should have sent out this patch set changing meta-oe stuff at the same time to get the broader overview, sorry about that.
NetworkManager is really the most drastic change here, since this is a prominent package where the change changes the current default. So if you have any suggestion to ease the transition, I am happy to look into it.
TBH: I haven't the time to take care for a use case I never had until now. I'll just add polkit to my DISTRO_FEATURES and hope to get same as before.
Andreas
PATCH 3/5 xfce4-power-manager: enable polkit depending on distro feature
In reply to Stefan AgnerFrom: Stefan Agner <[email protected]>
systemd and polkit are not directly related. It is just fine to build with systemd but without polkit. Rename the systemd package config to polkit and enable it depending on whether polkit is enabled in DISTRO_FEATURES.
--- .../recipes-xfce/xfce4-power-manager/xfce4-power-manager_1.6.1.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-xfce/recipes-xfce/xfce4-power-manager/xfce4-power-manager_1.6.1.bb +2 -2
@@ -20,8 +20,8 @@ EXTRA_OECONF = " \ --enable-panel-plugins \ " -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" -PACKAGECONFIG[systemd] = "--enable-polkit, --disable-polkit, polkit" +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)}" +PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, polkit" PACKAGES += "xfce4-powermanager-plugin"
Signature · 1 line
2.13.6
Re: [PATCH 3/5] xfce4-power-manager: enable polkit depending on distro feature
Quoted 5 lines · Stefan Agner
From: Stefan Agner <[email protected]>
systemd and polkit are not directly related. It is just fine to build with systemd but without polkit.
Surely it builds but is it still usable as unpriviledged user?
Andreas
Quoted 32 lines
Rename the systemd package config
to polkit and enable it depending on whether polkit is enabled inDISTRO_FEATURES.Signed-off-by Stefan Agner <[email protected]>--- .../recipes-xfce/xfce4-power-manager/xfce4-power-manager_1.6.1.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta-xfce/recipes-xfce/xfce4-power-manager/xfce4-power-manager_1.6.1.bb +2
-3@@ -20,8 +20,8 @@ EXTRA_OECONF = " \ --enable-panel-plugins \ " -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" -PACKAGECONFIG[systemd] = "--enable-polkit, --disable-polkit, polkit" +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)}" +PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, polkit" PACKAGES += "xfce4-powermanager-plugin" --2.13.6
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [PATCH 3/5] xfce4-power-manager: enable polkit depending on distro feature
Quoted 7 lines · Andreas Müller
Quoted 5 lines · Stefan Agner
From: Stefan Agner <[email protected]>
systemd and polkit are not directly related. It is just fine to build with systemd but without polkit.
Surely it builds but is it still usable as unpriviledged user?
TBH, I don't know, did not run XFCE.
If it is unusable, we probably should not make it an option anyway? Just enable it always and make polkit a fixed dependency?
--
Stefan
Quoted 34 lines
Andreas
Quoted 32 lines
Rename the systemd package config
to polkit and enable it depending on whether polkit is enabled inDISTRO_FEATURES.Signed-off-by Stefan Agner <[email protected]>--- .../recipes-xfce/xfce4-power-manager/xfce4-power-manager_1.6.1.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta-xfce/recipes-xfce/xfce4-power-manager/xfce4-power-manager_1.6.1.bb +2
-3@@ -20,8 +20,8 @@ EXTRA_OECONF = " \ --enable-panel-plugins \ " -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" -PACKAGECONFIG[systemd] = "--enable-polkit, --disable-polkit, polkit" +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)}" +PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, polkit" PACKAGES += "xfce4-powermanager-plugin" --2.13.6
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [PATCH 3/5] xfce4-power-manager: enable polkit depending on distro feature
Quoted 10 lines · Stefan Agner
Quoted 7 lines · Andreas Müller
Quoted 5 lines · Stefan Agner
From: Stefan Agner <[email protected]>
systemd and polkit are not directly related. It is just fine to build with systemd but without polkit.
Surely it builds but is it still usable as unpriviledged user?
TBH, I don't know, did not run XFCE.
We do! :)
Quoted 3 lines
If it is unusable, we probably should not make it an option anyway? Just enable it always and make polkit a fixed dependency?
Grace,
Please apply this series of patches and check if xfce4-power-manager is usable as an unprivileged user?
../Randy
Quoted 38 lines
--
StefanQuoted 34 lines
Andreas
Quoted 32 lines
Rename the systemd package config
to polkit and enable it depending on whether polkit is enabled inDISTRO_FEATURES.Signed-off-by Stefan Agner <[email protected]>--- .../recipes-xfce/xfce4-power-manager/xfce4-power-manager_1.6.1.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta-xfce/recipes-xfce/xfce4-power-manager/xfce4-power-manager_1.6.1.bb +2
-3@@ -20,8 +20,8 @@ EXTRA_OECONF = " \ --enable-panel-plugins \ " -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" -PACKAGECONFIG[systemd] = "--enable-polkit, --disable-polkit, polkit" +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'polkit', d)}" +PACKAGECONFIG[polkit] = "--enable-polkit, --disable-polkit, polkit" PACKAGES += "xfce4-powermanager-plugin" --2.13.6
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 2 lines
# Randy MacLeod # Wind River Linux
Re: [PATCH 3/5] xfce4-power-manager: enable polkit depending on distro feature
Quoted 16 lines · Randy MacLeod
Quoted 10 lines · Stefan Agner
Quoted 7 lines · Andreas Müller
Quoted 5 lines · Stefan Agner
From: Stefan Agner <[email protected]>
systemd and polkit are not directly related. It is just fine to build with systemd but without polkit.
Surely it builds but is it still usable as unpriviledged user?
TBH, I don't know, did not run XFCE.
We do! :)
Quoted 1 line
Quoted 6 lines
Quoted 2 lines
If it is unusable, we probably should not make it an option anyway? Just enable it always and make polkit a fixed dependency?
Grace,
Please apply this series of patches and check if xfce4-power-manager is usable as an unprivileged user?
Thanks for testing it out, I will wait to hear from you
Re: [PATCH 3/5] xfce4-power-manager: enable polkit depending on distro feature
Quoted 18 lines · Khem Raj
Quoted 16 lines · Randy MacLeod
Quoted 10 lines · Stefan Agner
Quoted 7 lines · Andreas Müller
Quoted 5 lines · Stefan Agner
From: Stefan Agner <[email protected]>
systemd and polkit are not directly related. It is just fine to build with systemd but without polkit.
Surely it builds but is it still usable as unpriviledged user?
TBH, I don't know, did not run XFCE.
We do! :)
Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
If it is unusable, we probably should not make it an option anyway? Just enable it always and make polkit a fixed dependency?
Grace,
Please apply this series of patches and check if xfce4-power-manager is usable as an unprivileged user?Thanks for testing it out, I will wait to hear from you
Hi Randy and Khem:
It's usable as an unprivileged user when project configured with below items altogether:
1, with systemd DISTRO_FEATURES
2, without polkit DISTRO_FEATURES
3, polkit package installed.
BTW, if we don't install polkit, there comes below error:
Missing or unbuildable dependency chain was: ['packagegroup-xfce-base', 'xfce4-session', 'polkit']
And there also comes a question about
"[oe] [PATCH 1/5] polkit: add polkit as a required distro feature" as there is a logic as REQUIRED_DISTRO_FEATURES = "polkit" added, but why does it inherit distro_features_check?
Thanks,
Quoted 1 line
Re: [PATCH 3/5] xfce4-power-manager: enable polkit depending on distro feature
Quoted 30 lines · Mingli
Quoted 18 lines · Khem Raj
Quoted 16 lines · Randy MacLeod
Quoted 10 lines · Stefan Agner
Quoted 7 lines · Andreas Müller
Quoted 5 lines · Stefan Agner
From: Stefan Agner <[email protected]>
systemd and polkit are not directly related. It is just fine to build with systemd but without polkit.
Surely it builds but is it still usable as unpriviledged user?
TBH, I don't know, did not run XFCE.
We do! :)
Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
If it is unusable, we probably should not make it an option anyway? Just enable it always and make polkit a fixed dependency?
Grace,
Please apply this series of patches and check if xfce4-power-manager is usable as an unprivileged user?Thanks for testing it out, I will wait to hear from you
Hi Randy and Khem:
Quoted 8 lines
It's usable as an unprivileged user when project configured with below items altogether:
1, with systemdDISTRO_FEATURES
2, without polkitDISTRO_FEATURES
3, polkit package installed.
BTW, if we don't install polkit, there comes below error:
Missing or unbuildable dependency chain was:
['packagegroup-xfce-base', 'xfce4-session', 'polkit']
I don't understand this. In this case, you have polkit *not* in DISTRO_FEATURES and this patch applied?
In that case, packageconfig polkit should not be enabled, and hence polkit should not be a dependency.
Quoted 5 lines
And there also comes a question about
"[oe] [PATCH 1/5] polkit: add polkit as a required distro feature" as there is a logic asREQUIRED_DISTRO_FEATURES= "polkit" added, but why does it inheritdistro_features_check?
polkit does not inherit distro_features_check, but should I guess?
You probably meant to ask "why does it *not* inherit distro_features_check?"
Good catch, will send a patch to add distro_features_check.
--
Stefan
Re: [PATCH 3/5] xfce4-power-manager: enable polkit depending on distro feature
Quoted 40 lines · Stefan Agner
Quoted 30 lines · Mingli
Quoted 18 lines · Khem Raj
Quoted 16 lines · Randy MacLeod
Quoted 10 lines · Stefan Agner
Quoted 7 lines · Andreas Müller
Quoted 5 lines · Stefan Agner
From: Stefan Agner <[email protected]>
systemd and polkit are not directly related. It is just fine to build with systemd but without polkit.
Surely it builds but is it still usable as unpriviledged user?
TBH, I don't know, did not run XFCE.
We do! :)
Quoted 1 line
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
If it is unusable, we probably should not make it an option anyway? Just enable it always and make polkit a fixed dependency?
Grace,
Please apply this series of patches and check if xfce4-power-manager is usable as an unprivileged user?Thanks for testing it out, I will wait to hear from you
Hi Randy and Khem:
Quoted 8 lines
It's usable as an unprivileged user when project configured with below items altogether:
1, with systemdDISTRO_FEATURES
2, without polkitDISTRO_FEATURES
3, polkit package installed.
BTW, if we don't install polkit, there comes below error:
Missing or unbuildable dependency chain was:
['packagegroup-xfce-base', 'xfce4-session', 'polkit']
Quoted 2 lines
I don't understand this. In this case, you have polkit *not* in
DISTRO_FEATURESand this patch applied?
Hi Stefan,
Yes, I apply these series patch successfully without polkit in DISTRO_FEATURES.
I guess you forget to inherit distro_features_check in your "[oe] [PATCH 1/5] polkit: add polkit as a required distro feature" make it possible?
Thanks,
Quoted 21 lines
In that case, packageconfig polkit should not be enabled, and hence polkit should not be a dependency.
Quoted 5 lines
And there also comes a question about
"[oe] [PATCH 1/5] polkit: add polkit as a required distro feature" as there is a logic asREQUIRED_DISTRO_FEATURES= "polkit" added, but why does it inheritdistro_features_check?polkit does not inherit
distro_features_check, but should I guess?You probably meant to ask "why does it *not* inherit
distro_features_check?"Good catch, will send a patch to add
distro_features_check.--
Stefan
PATCH 4/5 packagegroup-meta-oe: add polkit depending on distro feature
In reply to Stefan AgnerFrom: Stefan Agner <[email protected]>
Add polkit and related packages depending on whether polkit is enabled in DISTRO_FEATURES.
--- meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +3 -2
@@ -136,8 +136,7 @@ RDEPENDS_packagegroup-meta-oe-extended ="\ libpwquality libqb libuio \ lockfile-progs logwatch lprng mailx md5deep \ mozjs mraa nana nicstat \ - p7zip p8platform libfile-fnmatch-perl polkit \ - polkit-group-rule-datetime polkit-group-rule-network \ + p7zip p8platform libfile-fnmatch-perl \ rarpd redis rrdtool libfastjson librelp rsyslog sanlock \ sblim-cmpi-devel sblim-sfc-common sblim-sfcc \ scsirastools sgpio smartmontools snappy can-isotp \
@@ -148,6 +147,8 @@ RDEPENDS_packagegroup-meta-oe-extended ="\ ${@bb.utils.contains("DISTRO_FEATURES", "bluez", "collectd", "", d)} \ ${@bb.utils.contains("DISTRO_FEATURES", "pam", "pam-plugin-ccreds pam-plugin-ldapdb", "", d)} \ ${@bb.utils.contains("DISTRO_FEATURES", "pam", "pam-ssh-agent-auth openwsman sblim-sfcb ", "", d)} \ + ${@bb.utils.contains("DISTRO_FEATURES", "polkit", "polkit polkit-group-rule-datetime ", "", d)} \ + ${@bb.utils.contains("DISTRO_FEATURES", "polkit", "polkit-group-rule-network ", "", d)} \ ${@bb.utils.contains("BBPATH", "meta-python", "openlmi-tools", "", d)} \ " RDEPENDS_packagegroup-meta-oe-extended_remove_mipsarch = "upm mraa tiptop"
Signature · 1 line
2.13.6
PATCH 5/5 modemmanager: enable polkit depending on distro feature
In reply to Stefan AgnerFrom: Stefan Agner <[email protected]>
Enable the polkit package config depending on whether polkit is enabled in DISTRO_FEATURES.
--- meta-oe/recipes-connectivity/modemmanager/modemmanager_1.8.2.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-connectivity/modemmanager/modemmanager_1.8.2.bb +2 -2
@@ -21,8 +21,8 @@ SRC_URI[sha256sum] = "96f2a5f0ed15532b4c4c185b756fdc0326e7c2027cea26a1264f91e098 S = "${WORKDIR}/ModemManager-${PV}" -PACKAGECONFIG ??= "mbim qmi polkit \ - ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ +PACKAGECONFIG ??= "mbim qmi \ + ${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)} \ " PACKAGECONFIG[systemd] = "--with-systemdsystemunitdir=${systemd_unitdir}/system/,,"
Signature · 1 line
2.13.6