On 24 Jul 2023 15:55 -0600, from charlescur...@charlescurley.com (Charles 
Curley):
> A fresh install of Debian 12.1 on a Lenovo Yoga 13. I have firewalld
> installed, and firewall-config 1.3.0-1 to manage it. Polkit insists on
> authentication, which is fine. It then has extremely short timeouts (or
> something), so I have to keep re-authenticating. How do I tell it to
> not be so zealous?

It doesn't look like you can in any current version. Some web
searching brought me to [1] which appears to indicate that the
authentication timeout is currently hardcoded to five minutes for
temporary authorization.

If there's some specific action you take regularly you might be able
to define a rule of your own that overrides the default behavior; see
[2] for an example and polkit(8) (search for "polkit.Result") for the
possible return values. However, that will probably fully override the
default behavior, so you likely can't easily implement for example a
longer authentication timeout.

[1] 
https://cgit.freedesktop.org/polkit/tree/src/polkitbackend/polkitbackendinteractiveauthority.c#n3276

[2] https://wiki.archlinux.org/title/Polkit#For_specific_actions

-- 
Michael Kjörling                     🔗 https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”

Reply via email to