Discussion:
Bug#1033511: release-notes: mention the switch from old polkit .pkla files to JavaScript .rules
(too old to reply)
Simon McVittie
2023-03-26 14:00:01 UTC
Permalink
Package: release-notes
Severity: normal
Control: affects -1 src:policykit-1
X-Debbugs-Cc: policykit-***@packages.debian.org

I think the transition mentioned in /usr/share/doc/polkitd/NEWS.Debian.gz
deserves to be included in the bookworm release notes. I attach some
possible wording. I'm not entirely sure which section this should go
in, so the location suggested below is only a guess: please move it
as necessary.

Note that I've included a link to the bookworm polkit(8) man page, but
the version displayed on manpages.debian.org is currently wrong (it
seems to be a cached version of the man page as it appeared in bullseye).
I've reported a separate bug. If the manpages.d.o bug is not fixed by
the time this is ready for merge, then a workaround would be to link
to the unstable version of polkit(8), which has the correct content.

smcv

diff --git a/en/issues.dbk b/en/issues.dbk
index 4b7b9dda..38e79ce9 100644
--- a/en/issues.dbk
+++ b/en/issues.dbk
@@ -55,6 +55,54 @@

</section>

+ <section id="polkitd-pkla">
+ <!-- bullseye to bookworm -->
+ <title>polkit .pkla files deprecated</title>
+ <para>
+ polkit (formerly PolicyKit) has been upgraded from version 0.105 to
+ version 122.
+ This version changes the syntax used for local policy rules:
+ it is now the same JavaScript-based format used by the upstream polkit
+ project and by other Linux distributions.
+ </para>
+ <para>
+ System administrators can override the default security policy by
+ installing local policy overrides into
+ <filename>/etc/polkit-1/rules.d/*.rules</filename>,
+ which can either make the policy more restrictive or more
+ permissive.
+ Some sample policy rules can be found in the
+ <filename>/usr/share/doc/polkitd/examples</filename> directory.
+ Please see the <ulink
+ url="&url-man;/&releasename;/polkitd/polkit.8.html#AUTHORIZATION_RULES">polkit(8)
+ manual page</ulink> for more details.
+ </para>
+ <para>
+ Older Debian releases used the "local authority" rules format from
+ upstream version 0.105, consisting of <literal>.pkla</literal>
+ files with a <literal>.desktop</literal>-like syntax,
+ installed into subdirectories of
+ <filename>/etc/polkit-1/localauthority</filename>
+ or <filename>/var/lib/polkit-1/localauthority</filename>.
+ The <systemitem role="package">polkitd-pkla</systemitem> package
+ provides compatibility with these files, and will usually be
+ installed during upgrades.
+ If it is installed, then <literal>.pkla</literal> files will be
+ processed at a higher priority than most <literal>.rules</literal>
+ files.
+ If the <systemitem role="package">polkitd-pkla</systemitem>
+ package is removed, <literal>.pkla</literal> files will no longer
+ be used.
+ </para>
+ <para>
+ The <literal>.pkla</literal> files should be considered deprecated,
+ and <systemitem role="package">polkitd-pkla</systemitem> is likely
+ to be removed in a future Debian release.
+ Please migrate any local policy overrides to the JavaScript format
+ after upgrading.
+ </para>
+ </section>
+
<section id="puppetserver">
<!-- bullseye to bookworm -->
<title>Puppet configuration management system upgraded to 7</title>
Debian Bug Tracking System
2023-03-26 14:00:01 UTC
Permalink
Post by Simon McVittie
affects -1 src:policykit-1
Bug #1033511 [release-notes] release-notes: mention the switch from old polkit .pkla files to JavaScript .rules
Added indication that 1033511 affects src:policykit-1
--
1033511: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033511
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Richard Lewis
2023-05-08 12:50:01 UTC
Permalink
i cant be the only one who has seen many references to "polkit" but
never managed to understand what it does - or whether i was using it
as part of gnome etc - so this was helpful!

By searching the internet, and reading the previous version, I think i
understood the following

<section id="changes-to-polkit-configuration">
<!-- bullseye to bookworm but will need something if/when future
releases drop pkla entirely -->
<title>Changes to polkit configuration</title>
<para>
The <literal>polkit</literal> (formerly
<literal>PolicyKit</literal>) service, which allows unprivileged
programs to access privileged system services,
has changed the syntax and location for local policy rules.
The previous syntax and locations are still supported but have been
deprecated for consistency with
upstream and other distributions.
<para>
System administrators should now add local rules for
customizing the security policy at
<filename>/etc/polkit-1/rules.d/*.rules</filename>, and write them in
<ulink url=""https://en.wikipedia.org/wiki/JavaScript>JavaScript</link>.
Example rules using the new format can be found in
<filename>/usr/share/doc/polkitd/examples/</filename>, and <ulink
url="&url-man;/&releasename;/polkitd/polkit.8.html#AUTHORIZATION_RULES">polkit(8)</ulink>
has further information.
</para>
<para>
Previously, rules could be written in <literal>pkla</literal>
format, and placed in in subdirectories of
<filename>/etc/polkit-1/localauthority</filename>
or <filename>/var/lib/polkit-1/localauthority</filename>: such
rules will only continue to work if you install the <systemitem
role="package">polkitd-pkla</systemitem> package.
This will usually be installed automatically when you upgrade
to bookworm.
</para>
</section>
Richard Lewis
2023-05-21 15:10:01 UTC
Permalink
On Mon, 8 May 2023 13:42:26 +0100 Richard Lewis
Post by Richard Lewis
By searching the internet, and reading the previous version, I think i
understood the following
...

MR submitted here:
https://salsa.debian.org/ddp-team/release-notes/-/merge_requests/170
Paul Gevers
2023-05-23 10:20:01 UTC
Permalink
Control: tags -1 patch
Post by Richard Lewis
https://salsa.debian.org/ddp-team/release-notes/-/merge_requests/170
Paul
Debian Bug Tracking System
2023-05-23 10:20:01 UTC
Permalink
tags -1 patch
Bug #1033511 [release-notes] release-notes: mention the switch from old polkit .pkla files to JavaScript .rules
Added tag(s) patch.
--
1033511: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033511
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Debian Bug Tracking System
2023-05-30 19:30:01 UTC
Permalink
Your message dated Tue, 30 May 2023 21:25:29 +0200
with message-id <e8ea6cb5-ed75-31d0-a746-***@debian.org>
and subject line Re: Bug#1033511: release-notes: mention the switch from old polkit .pkla files to JavaScript .rules
has caused the Debian Bug report #1033511,
regarding release-notes: mention the switch from old polkit .pkla files to JavaScript .rules
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ***@bugs.debian.org
immediately.)
--
1033511: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033511
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Loading...