head 1.7; access; symbols pkgsrc-2026Q2:1.6.0.2 pkgsrc-2026Q2-base:1.6 pkgsrc-2026Q1:1.5.0.2 pkgsrc-2026Q1-base:1.5 pkgsrc-2025Q4:1.4.0.8 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.4.0.6 pkgsrc-2025Q3-base:1.4 pkgsrc-2025Q2:1.4.0.4 pkgsrc-2025Q2-base:1.4 pkgsrc-2025Q1:1.4.0.2 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.3.0.14 pkgsrc-2024Q4-base:1.3 pkgsrc-2024Q3:1.3.0.12 pkgsrc-2024Q3-base:1.3 pkgsrc-2024Q2:1.3.0.10 pkgsrc-2024Q2-base:1.3 pkgsrc-2024Q1:1.3.0.8 pkgsrc-2024Q1-base:1.3 pkgsrc-2023Q4:1.3.0.6 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.4 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.2 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.2.0.40 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.38 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.36 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.34 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.32 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.30 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.28 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.26 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.24 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.22 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.20 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.18 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.14 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.16 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.12 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.10 pkgsrc-2019Q2-base:1.2 pkgsrc-2019Q1:1.2.0.8 pkgsrc-2019Q1-base:1.2 pkgsrc-2018Q4:1.2.0.6 pkgsrc-2018Q4-base:1.2 pkgsrc-2018Q3:1.2.0.4 pkgsrc-2018Q3-base:1.2 pkgsrc-2018Q2:1.2.0.2 pkgsrc-2018Q2-base:1.2 pkgsrc-2018Q1:1.1.0.18 pkgsrc-2018Q1-base:1.1 pkgsrc-2017Q4:1.1.0.16 pkgsrc-2017Q4-base:1.1 pkgsrc-2017Q3:1.1.0.14 pkgsrc-2017Q3-base:1.1 pkgsrc-2017Q2:1.1.0.10 pkgsrc-2017Q2-base:1.1 pkgsrc-2017Q1:1.1.0.8 pkgsrc-2017Q1-base:1.1 pkgsrc-2016Q4:1.1.0.6 pkgsrc-2016Q4-base:1.1 pkgsrc-2016Q3:1.1.0.4 pkgsrc-2016Q3-base:1.1 pkgsrc-2016Q2:1.1.0.2 pkgsrc-2016Q2-base:1.1; locks; strict; comment @ * @; 1.7 date 2026.06.25.10.29.54; author wiz; state dead; branches; next 1.6; commitid VCmSYn3xDIptoaLG; 1.6 date 2026.06.05.22.16.44; author wiz; state Exp; branches; next 1.5; commitid XUlAMgRjjrHMWEIG; 1.5 date 2025.12.21.15.44.05; author wiz; state Exp; branches; next 1.4; commitid EGVh722IZFx07inG; 1.4 date 2025.01.15.08.41.38; author adam; state Exp; branches; next 1.3; commitid oh881fa5ZenAHyFF; 1.3 date 2023.06.07.15.36.40; author wiz; state Exp; branches; next 1.2; commitid OerXgYpZf3loT1sE; 1.2 date 2018.04.29.05.14.36; author wiz; state Exp; branches; next 1.1; commitid uLK3voylF7aapiAA; 1.1 date 2016.05.20.18.39.33; author youri; state Exp; branches; next ; commitid 20qLLHySGn2mEf7z; desc @@ 1.7 log @polkit: remove unneeded patch; extend %m fixes Bump PKGREVISION. @ text @$NetBSD: patch-src_polkitbackend_polkitbackendinteractiveauthority.c,v 1.6 2026/06/05 22:16:44 wiz Exp $ * for *BSD netgroup functions https://github.com/polkit-org/polkit/pull/624 --- src/polkitbackend/polkitbackendinteractiveauthority.c.orig 2025-12-17 16:14:53.000000000 +0000 +++ src/polkitbackend/polkitbackendinteractiveauthority.c @@@@ -25,8 +25,12 @@@@ #ifdef HAVE_NETGROUP_H #include #else +#if defined(__NetBSD__) +#include +#else #include #endif +#endif #include #include #include @@@@ -2383,7 +2387,7 @@@@ get_users_in_net_group (PolkitIdentity name = polkit_unix_netgroup_get_name (POLKIT_UNIX_NETGROUP (group)); -# ifdef HAVE_SETNETGRENT_RETURN +#if defined(HAVE_SETNETGRENT_RETURN) && !defined(__NetBSD__) if (setnetgrent (name) == 0) { g_warning ("Error looking up net group with name %s: %s", name, g_strerror (errno)); @ 1.6 log @polkit: remove unnecessary define (upstream feedback) NFCI @ text @d1 1 a1 1 $NetBSD: patch-src_polkitbackend_polkitbackendinteractiveauthority.c,v 1.5 2025/12/21 15:44:05 wiz Exp $ @ 1.5 log @polkit: update to 127. ## polkit 127 ### Highlights: - socket-activated polkit-agent-helper can now run without SETUID (Luca Boccassi) - user id (UID) now accessible to JavaScript rules via subject.uid (Rosentti, Jan Rybar) - INI config file support for polkitd with configurable auth expiration timer (Luca Boccassi) - auth_keep: skip re-authentication if new process shares same UID/parent/cgroup/tty (Luca Boccassi) - CheckAuthorization now returns 'polkit.result' in the details dict (Luca Boccassi) - pkexec: set $SUDO_UID/$SUDO_GID for compatibility with sudo (Lennart Poettering) - pkexec: use realpath when comparing org.freedesktop.policykit.exec.path (Walter Doekes) - memory limits added to systemd unit to mitigate memory leaks (Alexander Meshcheryakov) - new translations: Bulgarian (twlvnn kraftwerk), Occitan (Mejans) @ text @d1 1 a1 1 $NetBSD: patch-src_polkitbackend_polkitbackendinteractiveauthority.c,v 1.4 2025/01/15 08:41:38 adam Exp $ d8 1 a8 1 @@@@ -25,8 +25,13 @@@@ a13 1 +#define BSD_NETGROUP d21 1 a21 1 @@@@ -2383,7 +2388,7 @@@@ get_users_in_net_group (PolkitIdentity @ 1.4 log @polkit: updated to 126 polkit 126 Highlights: - many code fixes detected either by CI or the author himself (Frantisek Sumsal) - shellcheck and dependabot integration (Jan Macku) - search for rules in /usr/local/share rather than /usr/local/lib (Luca Boccassi) - Implement LogControl1 protocol for dynamic log level changes (Luca Boccassi) - read actions also from /etc/, /run/ and /usr/local/share/ (Luca Boccassi) - mozjs dropped in favor of duktape (Xi Ruoyao) - many other fixes in build system and polkit code (Many thanks to all the authors.) @ text @d1 1 a1 1 $NetBSD: patch-src_polkitbackend_polkitbackendinteractiveauthority.c,v 1.3 2023/06/07 15:36:40 wiz Exp $ d4 1 d6 1 a6 1 --- src/polkitbackend/polkitbackendinteractiveauthority.c.orig 2024-08-08 13:12:35.000000000 +0000 d22 2 a23 2 @@@@ -2255,7 +2260,7 @@@@ get_users_in_net_group (PolkitIdentity #ifdef HAVE_SETNETGRENT @ 1.3 log @polkit: update to 121. ## polkit 121 ### Highlights: - new versioning - duktape added as backend JS engine - autotools build system removed - new translations ### Changes since polkit 0.120: * Simon McVittie * meson and testsuite fixes * Bastien Nocera * add ability to create policyconfig-1.dtd file * Xi Ruoyao * port to newer mozjs-91, jsauthority tweaks * Wu Xiaotian and Gustavo Lima Chaves * Add duktape as javascript engine * Nathan Follens * Dutch translation * Daniel E * duktape fixup * Fabrice Fontaine * fix build without C++ * Dan Nicholson * fixup in group permision checking (backend) * Phaedrus Leeds * typo fix * Adrian Vovk * add option (--keep-cwd) for pkexec * Matt Turner * Allow --version and --help even if not setuid root * Benedikt Ames * fixes in polkitagent * Vincent Mihalkovic * development support @ text @d1 1 a1 1 $NetBSD: patch-src_polkitbackend_polkitbackendinteractiveauthority.c,v 1.2 2018/04/29 05:14:36 wiz Exp $ d5 1 a5 1 --- src/polkitbackend/polkitbackendinteractiveauthority.c.orig 2022-07-11 08:46:06.000000000 +0000 d7 1 a7 1 @@@@ -26,8 +26,13 @@@@ d21 2 a22 2 @@@@ -2250,7 +2255,7 @@@@ get_users_in_net_group (PolkitIdentity ret = NULL; d25 1 a25 1 -#ifdef HAVE_SETNETGRENT_RETURN @ 1.2 log @polkit: update to 0.114. -------------- polkit 0.114 -------------- WARNING WARNING WARNING: This is a prerelease on the road to polkit 1.0. Public API might change and certain parts of the code still needs some security review. Use at your own risk. This is polkit 0.114. Highlights: Port to mozjs 52, the latest version of the firefox JavaScript engine. Add gettext support for policy files Fixes for various memory leaks Build requirements glib, gobject, gio >= 2.32 mozjs-52 gobject-introspection >= 0.6.2 (optional) pam (optional) ConsoleKit OR systemd Changes since polkit 0.113: Anders Jonsson (2): pkcheck: fix man typos Add Swedish translation Antoine Jacoutot (1): Add support for OpenBSD Christian Kirbach (1): Add German translation Colin Walters (3): build: Pull in GCC warning infra from ostree build: Use AC_USE_SYSTEM_EXTENSIONS tests: Correct boundary test for overflow Dariusz Gadomski (2): Fix multi-line pam text info. Refactor send_to_helper usage Gabor Kelemen (1): Add initial Hungarian translation, and add hu to LINGUAS Jeremy Linton (5): change mozjs interface module to c++ Switch to hard requiring mozjs24 Fix warnings caused by building with C++ Replace autocompartment test: Add a test case to handle actions without explicit rules Jiří Klimeš (1): trivial: fix deprecated indication for polkit_agent_register_listener() Matthias Clasen (1): Add gettext support for .policy files Miloslav Trmač (21): Post-release version bump to 0.114 Consistently use HAVE_NETGROUP_H instead of HAVE_OPENBSD Fix a memory leak of PolkitAgentListener's Server object Remove polkitbackendconfigsource.[ch] Add Slovak translation by Dusan Kazik Add Indonesian translation by Andika Triwidada Add Chinese (Taiwan) translation Fix a typo in polkit(8) Simplify GVariant reference counting Fix a memory leak on an error path of lookup_asv (twice) Fix a memory leak in server_handle_register_authentication_agent_with_options Fix a memory leak in server_handle_unregister_authentication_agent Fix a memory leak in server_handle_authentication_agent_response{,2} Fix memory leaks in server_handle_*_temporary_authorizations Fix error handling in polkit_authority_enumerate_temporary_authorizations_finish Fix a memory leak per agent authentication Fix a memory leak on agent authentication cancellation Audit and fix GVariant reference counting Fix help for (pkttyagent -s) Fix a race condition when terminating runaway_killer_thread Move to current GLib Mingye Wang (Arthur2e5) (1): Add zh_CN translation Muhammet Kara (1): Added Turkish translation OBATA Akio (1): Add support for NetBSD Peter Hutterer (1): gettext: switch to default-translate "no" Philip Withnall (3): polkit: Add g_autoptr() support for GObject-derived polkit types data: Set GIO_USE_VFS=local in the environment polkitbackend: Fix typos in a couple of initialisation error messages Piotr Drąg (1): Add Polish translation Rafael Fontenelle (1): Add Brazilian Portuguese translation Ray Strode (34): configure: bump mozjs requirement to 52 jsauthority: fix how classes are defined jsauthority: use JS_FN instead of JS_FS jsauthority: get rid of JSRuntime jsauthority: change how setVersion is called jsauthority: call JS_Init jsauthority: call JS_InitSelfHostedCode jsauthority: change how JIT is disabled jsauthority: JS::SetWarningReporter instead of JS_SetErrorReporter jsauthority: add UTF8 suffix to renamed functions jsauthority: pass "%s" format string to report functions jsauthority: s/JSBool/bool/ jsauthority: s/jsval/JS::Value/ jsauthority: s/JSVAL_NULL/JS::NullValue()/ jsauthority: s/JSVAL_VOID/JS::UndefinedValue()/ jsauthority: s/OBJECT_TO_JSVAL/JS::ObjectValue/ jsauthority: s/STRING_TO_JSVAL/JS::StringValue/ jsauthority: s/BOOLEAN_TO_JSVAL/JS::BooleanValue/ jsauthority: JSVAL_TO_OBJECT (o) to o.toObjectOrNull() jsauthority: JSVAL_TO_STRING (s) to s.toString() jsauthority: JSVAL_IS_STRING (s) to s.isString() jsauthority: JSVAL_IS_NULL (o) to o.isNull() jsauthority: Fix up JS_CallFunctionName invocations jsauthority: use InterruptCallback api instead of OperationCallback jsauthority: redo how global objects are set up jsauthority: root some locals to the context jsauthority: adapt arguments for new JS::Compile API jsauthority: adapt arguments for new JS_ExecuteScript API jsauthority: use JS::Evaluate instead of JS_EvaluateScript jsauthority: fix up set_property methods jsauthority: stop using JS_GetStringCharsZ jsauthority: switch from JS_ConvertArguments to JS::CallArgsFromVp jsauthority: re-enable JIT Port JavaScript authority to mozjs52 Rui Matos (1): polkitpermission: Fix a memory leak on authority changes Sebastien Bacher (1): Support polkit session agent running outside user session Stef Walter (2): polkitagent: Fix access after dereference on hashtable polkitagent: No double warnings in polkit_agent_listener_register() Sven Eden (1): configure: enable elogind support in PolicyKit Yuri Chornoivan (1): Add Ukrainian translation enkore (1): Fix abnomal formatting of authentication header lines muzena (1): Add hr.po Thanks to our contributors. Colin Walters and Miloslav Trmač, April 2, 2017 @ text @d1 1 a1 1 $NetBSD: patch-src_polkitbackend_polkitbackendinteractiveauthority.c,v 1.1 2016/05/20 18:39:33 youri Exp $ d5 1 a5 1 --- src/polkitbackend/polkitbackendinteractiveauthority.c.orig 2018-04-03 18:16:04.000000000 +0000 d21 1 a21 1 @@@@ -2228,7 +2233,7 @@@@ get_users_in_net_group (PolkitIdentity d26 1 a26 1 +#if HAVE_SETNETGRENT_RETURN && !defined(__NetBSD__) @ 1.1 log @Import polkit-0.113nb1 as security/polkit. PolicyKit is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes. @ text @d1 1 a1 1 $NetBSD: patch-src_polkitbackend_polkitbackendinteractiveauthority.c,v 1.3 2015/04/02 14:55:36 bsiegert Exp $ d5 1 a5 1 --- src/polkitbackend/polkitbackendinteractiveauthority.c.orig 2015-06-19 20:39:58.000000000 +0000 d7 4 a10 4 @@@@ -23,7 +23,12 @@@@ #include #include #include d16 1 d21 1 a21 1 @@@@ -2224,7 +2229,7 @@@@ get_users_in_net_group (PolkitIdentity @