Re: (Polkit issue) allowing anyone, or a specific user, to perform actions on Modems

2020-02-02 Thread Enrico Mioso

Thank you very very much It does work! :)
As per Polkit, I don't apreciate it very much either, even tough I guess it's, 
effectively, because of your same reason.

Thank you very very much, really.

Enrico




On Sun, 2 Feb 2020, Bjørn Mork wrote:


Date: Sun, 2 Feb 2020 12:50:52
From: Bjørn Mork 
To: Enrico Mioso 
Cc: modemmanager-devel@lists.freedesktop.org
Subject: Re: (Polkit issue) allowing anyone, or a specific user,
to perform actions on Modems

Enrico Mioso  writes:


the subjct says it all! Thanks guys!! :)


Don't know if this is sufficient, but I have this file which I believe
allows any member of the 'netdev' group to manage NM and MM:


root@miraculix:/tmp# cat 
/etc/polkit-1/localauthority/50-local.d/42-miraculix.pkla
# $Id: 42-miraculix.pkla,v 1.5 2018/03/22 19:54:49 bjorn Exp $
#
# Configuration file for the PolicyKit Local Authority.
#
# See the pklocalauthority(8) man page for more information
# about configuring the Local Authority.
#

[Network Manager]
Identity=unix-group:netdev
Action=org.freedesktop.NetworkManager.*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Modem Manager]
Identity=unix-group:netdev
Action=org.freedesktop.ModemManager1.*
ResultAny=yes
ResultInactive=yes
ResultActive=yes




Using 'Identity=unix-user:*' instead should allow any user.  In theory.
But who knows.  To be honest, I hate the polkit complexity.  Probably
because I have never cared enough to spend the necessary time reading
all the docs and default policy files etc.  But I wonder: Who does that?



Bjørn
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


Re: (Polkit issue) allowing anyone, or a specific user, to perform actions on Modems

2020-02-02 Thread Bjørn Mork
Enrico Mioso  writes:

> the subjct says it all! Thanks guys!! :)

Don't know if this is sufficient, but I have this file which I believe
allows any member of the 'netdev' group to manage NM and MM:


root@miraculix:/tmp# cat 
/etc/polkit-1/localauthority/50-local.d/42-miraculix.pkla 
# $Id: 42-miraculix.pkla,v 1.5 2018/03/22 19:54:49 bjorn Exp $
#
# Configuration file for the PolicyKit Local Authority.
#
# See the pklocalauthority(8) man page for more information
# about configuring the Local Authority.
#

[Network Manager]
Identity=unix-group:netdev
Action=org.freedesktop.NetworkManager.*
ResultAny=yes
ResultInactive=yes
ResultActive=yes

[Modem Manager]
Identity=unix-group:netdev
Action=org.freedesktop.ModemManager1.*
ResultAny=yes
ResultInactive=yes
ResultActive=yes




Using 'Identity=unix-user:*' instead should allow any user.  In theory.
But who knows.  To be honest, I hate the polkit complexity.  Probably
because I have never cared enough to spend the necessary time reading
all the docs and default policy files etc.  But I wonder: Who does that?



Bjørn
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel


(Polkit issue) allowing anyone, or a specific user, to perform actions on Modems

2020-02-02 Thread Enrico Mioso

Hello !
the subjct says it all! Thanks guys!! :)

Enrico
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel