...
 
Commits (81)
......@@ -91,3 +91,13 @@ Coding Style
heuristically parse a file and accept not-well-formed
data). Avoiding heuristics is also important for security reasons;
if it looks funny, ignore it (or exit, or disconnect).
Code of Conduct
===
As with other projects hosted on freedesktop.org, Polkit follows its
Code of Conduct, based on the Contributor Covenant. Please conduct
yourself in a respectful and civilized manner when using the above
mailing lists, bug trackers, etc:
https://www.freedesktop.org/wiki/CodeOfConduct
--------------
polkit 0.114
polkit 0.116
--------------
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.
This is polkit 0.116.
Highlights:
TODO
Build requirements
glib, gobject, gio >= 2.30
mozjs185 or mozjs-17.0
glib, gobject, gio >= 2.32
mozjs-52
gobject-introspection >= 0.6.2 (optional)
pam (optional)
ConsoleKit OR systemd
Changes since polkit 0.113:
Changes since polkit 0.114:
TODO
......@@ -28,6 +28,216 @@ Thanks to our contributors.
Colin Walters and Miloslav Trmač,
$DATE
---------------
polkit 0.115
--------------
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.115.
Highlights:
Fixes CVE-2018-1116, a local information disclosure and denial of service
caused by trusting client-submitted UIDs when referencing processes.
Thanks to Matthias Gerstner of the SUSE security team for reporting
this issue.
Build requirements
glib, gobject, gio >= 2.32
mozjs-52
gobject-introspection >= 0.6.2 (optional)
pam (optional)
ConsoleKit OR systemd
Changes since polkit 0.114:
Miloslav Trmač (1):
Fix CVE-2018-1116: Trusting client-supplied UID
Ray Strode (3):
Post-release version bump to 0.115
jsauthority: pass "%s" format string to remaining report function
NEWS: fix date from 2017 to 2018 for 0.114 entry
Thanks to our contributors.
Colin Walters and Miloslav Trmač,
July 10, 2018
--------------
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 <prescott66@gmail.com>
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, 2018
--------------
polkit 0.113
--------------
......
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59c)
AC_INIT([polkit], [0.114], [http://lists.freedesktop.org/mailman/listinfo/polkit-devel], , [http://www.freedesktop.org/wiki/Software/polkit])
AC_INIT([polkit], [0.116], [http://lists.freedesktop.org/mailman/listinfo/polkit-devel], , [http://www.freedesktop.org/wiki/Software/polkit])
AM_INIT_AUTOMAKE([])
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR([buildutil])
......@@ -23,6 +23,7 @@ AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)
AC_USE_SYSTEM_EXTENSIONS
AC_ISC_POSIX
AC_PROG_CC
AC_HEADER_STDC
......@@ -77,12 +78,8 @@ AC_SUBST(WARN_CFLAGS)
PKG_CHECK_MODULES(GLIB, [gmodule-2.0 gio-unix-2.0 >= 2.30.0])
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
AC_DEFINE([GLIB_VERSION_MIN_REQUIRED], [GLIB_VERSION_2_30],
[Avoid warning spew about g_type_init() being deprecated])
AC_DEFINE([GLIB_VERSION_MAX_ALLOWED], [G_ENCODE_VERSION(2,34)],
[Notify us when we'll need to transition away from g_type_init()])
PKG_CHECK_MODULES(LIBJS, [mozjs-24])
PKG_CHECK_MODULES(LIBJS, [mozjs-52])
AC_SUBST(LIBJS_CFLAGS)
AC_SUBST(LIBJS_CXXFLAGS)
......@@ -132,10 +129,11 @@ AC_ARG_ENABLE([test],
AM_CONDITIONAL(BUILD_TEST, [test "x$enable_test" = "xyes"])
dnl ---------------------------------------------------------------------------
dnl - Select wether to use libsystemd-login or ConsoleKit for session tracking
dnl - Select wether to use libsystemd-login, libelogind or ConsoleKit for session tracking
dnl ---------------------------------------------------------------------------
have_libsystemd=no
have_libelogind=no
SESSION_TRACKING=ConsoleKit
AC_ARG_ENABLE([libsystemd-login],
......@@ -156,16 +154,48 @@ if test "$enable_libsystemd_login" != "no"; then
],
[have_libsystemd=no])])
if test "$have_libsystemd" = "yes"; then
SESSION_TRACKING=libsystemd-login
AC_DEFINE([HAVE_LIBSYSTEMD], 1, [Define to 1 if libsystemd is available])
save_LIBS=$LIBS
LIBS=$LIBSYSTEMD_LIBS
AC_CHECK_FUNCS(sd_uid_get_display)
LIBS=$save_LIBS
SESSION_TRACKING=libsystemd-login
fi
fi
AC_ARG_ENABLE([libelogind],
[AS_HELP_STRING([--enable-libelogind[=@<:@auto/yes/no@:>@]], [Use libelogind (auto/yes/no)])],
[enable_libelogind=$enableval],
[enable_libelogind=auto])
dnl Using libelogind makes no sense when libsystemd-login is already in use
if test "$have_libsystemd" = "yes"; then
enable_libelogind=no
fi
if test "$enable_libelogind" != "no"; then
PKG_CHECK_MODULES([LIBELOGIND],
[libelogind],
[have_libelogind=yes])
if test "$have_libelogind" = "yes"; then
SESSION_TRACKING=libelogind
fi
fi
dnl libelogind is a drop-in replacement for libsystemd-login, so using it does
dnl not need any different actions than using libsystemd-login.
if test "$SESSION_TRACKING" != "ConsoleKit"; then
AC_DEFINE([HAVE_LIBSYSTEMD], 1, [Define to 1 if libsystemd or libelogind is available])
save_LIBS=$LIBS
if test "$have_libelogind" = "yes"; then
LIBS=$LIBELOGIND_LIBS
dnl We have to act like this was libsystemd-login
LIBSYSTEMD_CFLAGS=$LIBELOGIND_CFLAGS
LIBSYSTEMD_LIBS=$LIBELOGIND_LIBS
else
if test "$enable_libsystemd_login" = "yes"; then
AC_MSG_ERROR([libsystemd support requested but libsystemd or libsystemd-login library not found])
fi
LIBS=$LIBSYSTEMD_LIBS
fi
AC_CHECK_FUNCS(sd_uid_get_display)
LIBS=$save_LIBS
else
if test "$enable_libsystemd_login" = "yes"; then
AC_MSG_ERROR([libsystemd support requested but libsystemd or libsystemd-login library not found])
fi
if test "$enable_libelogind" = "yes"; then
AC_MSG_ERROR([libelogind support requested but libelogind library not found])
fi
fi
......
......@@ -37,7 +37,7 @@ pkgconfig_DATA = polkit-gobject-1.pc polkit-agent-1.pc
# ----------------------------------------------------------------------------------------------------
itsdir = $(datadir)/gettext/its
its_DATA = polkit.loc polkit.its
dist_its_DATA = polkit.loc polkit.its
# ----------------------------------------------------------------------------------------------------
......
......@@ -6,6 +6,7 @@ de
hr
hu
id
it
pl
pt_BR
sk
......
......@@ -3,20 +3,22 @@
# This file is distributed under the same license as the PolicyKit package.
#
# Tomáš Chvátal <tchvatal@suse.cz>, 2013.
# Marek Černocký <marek@manet.cz>, 2018.
#
msgid ""
msgstr ""
"Project-Id-Version: polkit\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-06-04 11:06+0200\n"
"PO-Revision-Date: 2013-06-04 11:33+0200\n"
"Last-Translator: Tomáš Chvátal <tchvatal@suse.cz>\n"
"Language-Team: Czech <kde-i18n-doc@kde.org>\n"
"POT-Creation-Date: 2018-09-25 16:18+0200\n"
"PO-Revision-Date: 2018-09-25 16:34+0200\n"
"Last-Translator: Marek Černocký <marek@manet.cz>\n"
"Language-Team: čeština <gnome-cs-list@gnome.org>\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Lokalize 1.5\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: Gtranslator 2.91.7\n"
#: ../actions/org.freedesktop.policykit.policy.in.h:1
msgid "Run a program as another user"
......@@ -40,27 +42,27 @@ msgstr ""
"(user=$(user), user.gecos=$(user.gecos), user.display=$(user.display), "
"program=$(program), command_line=$(command_line))"
#: ../src/programs/pkaction.c:100
#: ../src/programs/pkaction.c:101
msgid "Only output information about ACTION"
msgstr "Pouze vypsat informace o ČINNOSTI"
#: ../src/programs/pkaction.c:100
#: ../src/programs/pkaction.c:101
msgid "ACTION"
msgstr "ČINNOST"
#: ../src/programs/pkaction.c:104
#: ../src/programs/pkaction.c:105
msgid "Output detailed action information"
msgstr "Vypsat podrobné informace o činnosti"
#: ../src/programs/pkaction.c:108 ../src/programs/pkttyagent.c:61
#: ../src/programs/pkaction.c:109 ../src/programs/pkttyagent.c:62
msgid "Show version"
msgstr "Zobrazit verzi"
msgstr "Vypsat verzi"
#: ../src/programs/pkaction.c:130
#: ../src/programs/pkaction.c:132
msgid "[--action-id ACTION]"
msgstr "[--action-id ČINNOST]"
#: ../src/programs/pkaction.c:131 ../src/programs/pkttyagent.c:81
#: ../src/programs/pkaction.c:133 ../src/programs/pkttyagent.c:83
#, c-format
msgid ""
"Report bugs to: %s\n"
......@@ -69,13 +71,13 @@ msgstr ""
"Chyby hlaste na: %s\n"
"%s domovská stránka: <%s>"
#: ../src/programs/pkaction.c:145 ../src/programs/pkcheck.c:482
#: ../src/programs/pkttyagent.c:95
#: ../src/programs/pkaction.c:147 ../src/programs/pkcheck.c:493
#: ../src/programs/pkttyagent.c:97
#, c-format
msgid "%s: Unexpected argument `%s'\n"
msgstr "%s: neočekávaný argument `%s'\n"
msgstr "%s: neočekávaný argument „%s“\n"
#: ../src/programs/pkcheck.c:35
#: ../src/programs/pkcheck.c:36
#, c-format
msgid ""
"Usage:\n"
......@@ -93,7 +95,7 @@ msgid ""
"necessary\n"
" --list-temp List temporary authorizations for "
"current session\n"
" -p, --process=PID[,START_TIME] Check authorization of specified "
" -p, --process=PID[,START_TIME,UID] Check authorization of specified "
"process\n"
" --revoke-temp Revoke all temporary authorizations for "
"current session\n"
......@@ -105,107 +107,103 @@ msgid ""
"%s home page: <%s>\n"
msgstr ""
"Použití:\n"
" pkcheck [MOŽNOSTI]\n"
" pkcheck [VOLBY…]\n"
"\n"
"Možnosti nápovědy:\n"
" -h, --help Zobrazit možnosti nápovědy\n"
"Volby nápovědy:\n"
" -h, --help Zobrazit nápovědu k volbám\n"
"\n"
"Možnosti aplikace:\n"
" -a, --action-id=ČINNOST Zkontroluje oprávnění pro vykonání "
"činnosti\n"
" -u, --allow-user-interaction Povolit uživatelskou interakci, pokud je "
"potřeba\n"
" -d, --details=KLÍČ HODNOTA Přidá (KLÍČ, HODNOTA) do informací o "
"Volby aplikace:\n"
" -a, --action-id=ČINNOST Zkontrolovat oprávnění pro vykonání "
"ČINNOSTI\n"
" -u, --allow-user-interaction Povolit interakci s uživatelem, pokud "
"je potřeba\n"
" -d, --details=KLÍČ HODNOTA Přidat (KLÍČ, HODNOTA) do informací o "
"činnosti\n"
" --enable-internal-agent Pokud je třeba, tak použít interního "
"agenta ověření\n"
" --enable-internal-agent Použít interního ověřovacího agenta, "
"pokud je potřeba\n"
" --list-temp Vypsat dočasná oprávnění pro aktuální "
"sezení\n"
" -p, --process=PID[,ČAS_ZAHÁJENÍ] Zkontrolovat oprávnění vybraného "
" -p, --process=PID[,ČAS_SPUŠTĚNÍ] Zkontrolovat oprávnění vybraného "
"procesu\n"
" --revoke-temp Zrušit všechna dočasná oprávnění pro "
"aktuální sezení\n"
" -s, --system-bus-name=NÁZEV_SBĚRNICE Zkontrolovat oprávnění vlastníka "
"NÁZEV_SBĚRNICE\n"
" --version Zobrazit verzi\n"
" -s, --system-bus-name=NÁZEV_SBĚRNICE\n"
" Zkontrolovat oprávnění vlastníka "
"sběrnice NÁZEV_SBĚRNICE\n"
" --version Vypsat verzi\n"
"\n"
"Chyby hlaste na: %s\n"
"%s domovská stránka: <%s>\n"
#: ../src/programs/pkcheck.c:390 ../src/programs/pkcheck.c:415
#: ../src/programs/pkcheck.c:427
#: ../src/programs/pkcheck.c:393 ../src/programs/pkcheck.c:426
#: ../src/programs/pkcheck.c:438
#, c-format
msgid "%s: Argument expected after `%s'\n"
msgstr "%s: po `%s' je očekáván argument\n"
msgstr "%s: po „%s“ je očekáván argument\n"
#: ../src/programs/pkcheck.c:405
#: ../src/programs/pkcheck.c:416
#, c-format
msgid "%s: Invalid --process value `%s'\n"
msgstr "%s: Neplatná hodnota --process `%s'\n"
msgstr "%s: neplatná hodnota „%s“ pro „--process“\n"
#: ../src/programs/pkcheck.c:442 ../src/programs/pkcheck.c:451
#: ../src/programs/pkcheck.c:453 ../src/programs/pkcheck.c:462
#, c-format
msgid "%s: Two arguments expected after `--detail'\n"
msgstr "%s: po `--detail' jsou očekávány dva argumenty\n"
msgstr "%s: po „--detail“ jsou očekávány dva argumenty\n"
#: ../src/programs/pkcheck.c:512
#: ../src/programs/pkcheck.c:523
#, c-format
msgid "%s: Subject not specified\n"
msgstr "%s: neurčen předmět\n"
msgstr "%s: neurčen předmět\n"
#. Translators: message shown when trying to run a program as root. Do not
#. * translate the $(program) fragment - it will be expanded to the path
#. * of the program e.g. /bin/bash.
#.
#: ../src/programs/pkexec.c:741
#: ../src/programs/pkexec.c:790
msgid "Authentication is needed to run `$(program)' as the super user"
msgstr "Pro spuštění `$(program)' jako správce je vyžadováno ověření"
msgstr "Pro spuštění „$(program)“ pod účtem správce je vyžadováno ověření"
#. Translators: message shown when trying to run a program as another user.
#. * Do not translate the $(program) or $(user) fragments - the former will
#. * be expanded to the path of the program e.g. "/bin/bash" and the latter
#. * to the user e.g. "John Doe (johndoe)" or "johndoe".
#.
#: ../src/programs/pkexec.c:751
#: ../src/programs/pkexec.c:800
msgid "Authentication is needed to run `$(program)' as user $(user.display)"
msgstr ""
"Pro spuštění `$(program)' jako uživatel $(user.display) je vyžadováno ověření"
"Pro spuštění „$(program)“ pod uživatelem $(user.display) je vyžadováno "
"ověření"
#: ../src/programs/pkttyagent.c:44
#: ../src/programs/pkttyagent.c:45
msgid "Don't replace existing agent if any"
msgstr "Nenahrazovat již bežícího agenta"
#: ../src/programs/pkttyagent.c:48
#: ../src/programs/pkttyagent.c:49
msgid "Close FD when the agent is registered"
msgstr "Uzavře FD při registraci agenta"
msgstr "Uzavřít FD při registraci agenta"
#: ../src/programs/pkttyagent.c:48
#: ../src/programs/pkttyagent.c:49
msgid "FD"
msgstr "FD"
#: ../src/programs/pkttyagent.c:52
#: ../src/programs/pkttyagent.c:53
msgid "Register the agent for the specified process"
msgstr "Registrovat agenta pro určený proces"
#: ../src/programs/pkttyagent.c:53
#: ../src/programs/pkttyagent.c:54
msgid "PID[,START_TIME]"
msgstr "PID[,ČAS_ZAHÁJENÍ]"
msgstr "PID[,ČAS_SPUŠTĚNÍ]"
#: ../src/programs/pkttyagent.c:57
msgid "Register the agent owner of BUS_NAME"
msgstr "Registrovat agenta vlastníka NÁZEV_SBĚRNICE"
#: ../src/programs/pkttyagent.c:58
msgid "Register the agent for the owner of BUS_NAME"
msgstr "Registrovat agenta pro vlastníka sběrnice NÁZEV_SBĚRNICE"
#: ../src/programs/pkttyagent.c:57
#: ../src/programs/pkttyagent.c:58
msgid "BUS_NAME"
msgstr "NÁZEV_SBĚRNICE"
#: ../src/programs/pkttyagent.c:119
#: ../src/programs/pkttyagent.c:129
#, c-format
msgid "%s: Invalid process specifier `%s'\n"
msgstr "%s: neplatný identifikátor procesu `%s'\n"
#~ msgid "Authentication is required to configure lock down policy"
#~ msgstr "Pro nastavení pravidel uzamčení je vyžadováno ověření"
#~ msgid "Configure lock down for an action"
#~ msgstr "Nastavit uzamčení pro činnost"
msgstr "%s: neplatný identifikátor procesu „%s“\n"
\ No newline at end of file
# Italian translation for polkit.
# Copyright (C) 2018 polkit's COPYRIGHT HOLDER
# This file is distributed under the same license as the polkit package.
# Milo Casagrande <milo@milo.name>, 2018.
#
msgid ""
msgstr ""
"Project-Id-Version: polkit master\n"
"Report-Msgid-Bugs-To: https://gitlab.freedesktop.org/polkit/polkit/issues\n"
"POT-Creation-Date: 2018-09-11 03:25+0000\n"
"PO-Revision-Date: 2018-09-11 11:51+0200\n"
"Language-Team: Italian <gnome-it-list@gnome.org>\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Last-Translator: Milo Casagrande <milo@milo.name>\n"
"X-Generator: Poedit 2.1.1\n"
#: ../actions/org.freedesktop.policykit.policy.in.h:1
msgid "Run a program as another user"
msgstr "Lancia un programma come un altro utente"
#: ../actions/org.freedesktop.policykit.policy.in.h:2
msgid "Authentication is required to run a program as another user"
msgstr ""
"È richiesto autenticarsi per lanciare un programma come un altro utente"
#: ../src/examples/org.freedesktop.policykit.examples.pkexec.policy.in.h:1
msgid "Run the polkit example program Frobnicate"
msgstr "Lancia il programma di esempio Frobnicate"
#: ../src/examples/org.freedesktop.policykit.examples.pkexec.policy.in.h:2
msgid ""
"Authentication is required to run the polkit example program Frobnicate "
"(user=$(user), user.gecos=$(user.gecos), user.display=$(user.display), "
"program=$(program), command_line=$(command_line))"
msgstr ""
"È richiesto autenticarsi per lanciare il programma di esempio Frobnicate "
"(user=$(user), user.gecos=$(user.gecos), user.display=$(user.display), "
"program=$(program), command_line=$(command_line))"
#: ../src/programs/pkaction.c:101
msgid "Only output information about ACTION"
msgstr "Stampa informazioni solo riguardo all'AZIONE"
#: ../src/programs/pkaction.c:101
msgid "ACTION"
msgstr "AZIONE"
#: ../src/programs/pkaction.c:105
msgid "Output detailed action information"
msgstr "Stampa informazioni dettagliate dell'azione"
#: ../src/programs/pkaction.c:109 ../src/programs/pkttyagent.c:62
msgid "Show version"
msgstr "Mostra la versione"
#: ../src/programs/pkaction.c:132
msgid "[--action-id ACTION]"
msgstr "[--action-id AZIONE]"
#: ../src/programs/pkaction.c:133 ../src/programs/pkttyagent.c:83
#, c-format
msgid ""
"Report bugs to: %s\n"
"%s home page: <%s>"
msgstr ""
"Segnalare problemi a: %s\n"
"Sito web di %s: <%s>"
#: ../src/programs/pkaction.c:147 ../src/programs/pkcheck.c:493
#: ../src/programs/pkttyagent.c:97
#, c-format
msgid "%s: Unexpected argument `%s'\n"
msgstr "%s: argomento «%s» non atteso\n"
#: ../src/programs/pkcheck.c:36
#, c-format
msgid ""
"Usage:\n"
" pkcheck [OPTION...]\n"
"\n"
"Help Options:\n"
" -h, --help Show help options\n"
"\n"
"Application Options:\n"
" -a, --action-id=ACTION Check authorization to perform ACTION\n"
" -u, --allow-user-interaction Interact with the user if necessary\n"
" -d, --details=KEY VALUE Add (KEY, VALUE) to information about "
"the action\n"
" --enable-internal-agent Use an internal authentication agent if "
"necessary\n"
" --list-temp List temporary authorizations for "
"current session\n"
" -p, --process=PID[,START_TIME,UID] Check authorization of specified "
"process\n"
" --revoke-temp Revoke all temporary authorizations for "
"current session\n"
" -s, --system-bus-name=BUS_NAME Check authorization of owner of "
"BUS_NAME\n"
" --version Show version\n"
"\n"
"Report bugs to: %s\n"
"%s home page: <%s>\n"
msgstr ""
"Uso:\n"
" pkcheck [OPZIONE...]\n"
"\n"
"Opzioni d'aiuto:\n"
" -h, --help Mostra opzioni di aiuto\n"
"\n"
"Opzioni dell'applicazione:\n"
" -a, --action-id=AZIONE Controlla l'autorizzazione per "
"eseguire\n"
" AZIONE\n"
" -u, --allow-user-interaction Interagisce con l'utente, se "
"necessario\n"
" -d, --details=CHIAVE VALORE Aggiunge (CHIAVE, VALORE) alle "
"informazioni\n"
" riguardo all'azione\n"
" --enable-internal-agent Usa un agente di autenticazione "
"interna,\n"
" se necessario\n"
" --list-temp Elenca autorizzazione temporane per la\n"
" sessione corrente\n"
" -p, --process=PID[,START_TIME,UID] Controlla l'autorizzazione del "
"processo\n"
" specificato\n"
" --revoke-temp Revoca tutte le autorizzazione "
"temporane\n"
" per la sessione corrente\n"
" -s, --system-bus-name=NOME_BUS Controlla l'autorizzazione per il\n"
" proprietario di NOME_BUS\n"
" --version Mostra la versione\n"
"\n"
"Segnalare problemi a: %s\n"
"Sito web di %s: <%s>\n"
#: ../src/programs/pkcheck.c:393 ../src/programs/pkcheck.c:426
#: ../src/programs/pkcheck.c:438
#, c-format
msgid "%s: Argument expected after `%s'\n"
msgstr "%s: atteso un argomento dopo «%s»\n"
#: ../src/programs/pkcheck.c:416
#, c-format
msgid "%s: Invalid --process value `%s'\n"
msgstr "%s: valore «%s» di --process non valido\n"
#: ../src/programs/pkcheck.c:453 ../src/programs/pkcheck.c:462
#, c-format
msgid "%s: Two arguments expected after `--detail'\n"
msgstr "%s: attesi due argomenti dopo «--detail»\n"
#: ../src/programs/pkcheck.c:523
#, c-format
msgid "%s: Subject not specified\n"
msgstr "%s: oggetto non specificato\n"
#. Translators: message shown when trying to run a program as root. Do not
#. * translate the $(program) fragment - it will be expanded to the path
#. * of the program e.g. /bin/bash.
#.
#: ../src/programs/pkexec.c:790
msgid "Authentication is needed to run `$(program)' as the super user"
msgstr "È richiesto autenticarsi per lanciare «$(program)» come super utente"
#. Translators: message shown when trying to run a program as another user.
#. * Do not translate the $(program) or $(user) fragments - the former will
#. * be expanded to the path of the program e.g. "/bin/bash" and the latter
#. * to the user e.g. "John Doe (johndoe)" or "johndoe".
#.
#: ../src/programs/pkexec.c:800
msgid "Authentication is needed to run `$(program)' as user $(user.display)"
msgstr ""
"È richiesto autenticarsi per lanciare «$(program)» come l'utente $(user."
"display)"
#: ../src/programs/pkttyagent.c:45
msgid "Don't replace existing agent if any"
msgstr "Non sostituisce l'agente esistente"
#: ../src/programs/pkttyagent.c:49
msgid "Close FD when the agent is registered"
msgstr "Chiude il FD quando l'agente viene registrato"
#: ../src/programs/pkttyagent.c:49
msgid "FD"
msgstr "FD"
#: ../src/programs/pkttyagent.c:53
msgid "Register the agent for the specified process"
msgstr "Registra l'agente per il processo specificato"
#: ../src/programs/pkttyagent.c:54
msgid "PID[,START_TIME]"
msgstr "PID[,TEMPO_INIZIO]"
#: ../src/programs/pkttyagent.c:58
msgid "Register the agent for the owner of BUS_NAME"
msgstr "Registra l'agente per il proprietario di NOME_BUS"
#: ../src/programs/pkttyagent.c:58
msgid "BUS_NAME"
msgstr "NOME_BUS"
#: ../src/programs/pkttyagent.c:129
#, c-format
msgid "%s: Invalid process specifier `%s'\n"
msgstr "%s: indicatore di processo «%s» non valido\n"
# translation of pl.po to Polish
# Piotr Drąg <piotrdrag@gmail.com>, 2010, 2015.
# Polish translation for polkit.
# Copyright © 2010-2018 the polkit authors.
# This file is distributed under the same license as the polkit package.
# Piotr Drąg <piotrdrag@gmail.com>, 2010-2018.
# Aviary.pl <community-poland@mozilla.org>, 2018.
#
msgid ""
msgstr ""
"Project-Id-Version: polkit\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-08-28 15:31+0200\n"
"PO-Revision-Date: 2015-08-28 15:32+0200\n"
"POT-Creation-Date: 2018-08-21 20:44+0200\n"
"PO-Revision-Date: 2018-08-21 20:50+0200\n"
"Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n"
"Language-Team: Polish <trans-pl@lists.fedoraproject.org>\n"
"Language-Team: Polish <community-poland@mozilla.org>\n"
"Language: pl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
......@@ -39,42 +42,42 @@ msgstr ""
"„Frobnicate” (user=$(user), user.gecos=$(user.gecos), user.display=$(user."
"display), program=$(program), command_line=$(command_line))"
#: ../src/programs/pkaction.c:100
#: ../src/programs/pkaction.c:101
msgid "Only output information about ACTION"
msgstr "Wyświetla tylko informacje o DZIAŁANIU"
msgstr "Wyświetla tylko informacje o DZIAŁANIU"
#: ../src/programs/pkaction.c:100
#: ../src/programs/pkaction.c:101
msgid "ACTION"
msgstr "DZIAŁANIE"
#: ../src/programs/pkaction.c:104
#: ../src/programs/pkaction.c:105
msgid "Output detailed action information"
msgstr "Wyświetla szczegółowe informacje o działaniu"
msgstr "Wyświetla szczegółowe informacje o działaniu"
#: ../src/programs/pkaction.c:108 ../src/programs/pkttyagent.c:61
#: ../src/programs/pkaction.c:109 ../src/programs/pkttyagent.c:62
msgid "Show version"
msgstr "Wyświetla wersję"
#: ../src/programs/pkaction.c:130
#: ../src/programs/pkaction.c:132
msgid "[--action-id ACTION]"
msgstr "[--action-id DZIAŁANIE]"
#: ../src/programs/pkaction.c:131 ../src/programs/pkttyagent.c:81
#: ../src/programs/pkaction.c:133 ../src/programs/pkttyagent.c:83
#, c-format
msgid ""
"Report bugs to: %s\n"
"%s home page: <%s>"
msgstr ""
"Prosimy zgłaszać błędy na (w języku angielskim): %s\n"
"Prosimy zgłaszać błędy na (w języku angielskim): %s\n"
"Strona domowa programu %s: <%s>"
#: ../src/programs/pkaction.c:145 ../src/programs/pkcheck.c:491
#: ../src/programs/pkttyagent.c:95
#: ../src/programs/pkaction.c:147 ../src/programs/pkcheck.c:493
#: ../src/programs/pkttyagent.c:97
#, c-format
msgid "%s: Unexpected argument `%s'\n"
msgstr "%s: nieoczekiwany parametr „%s”\n"
#: ../src/programs/pkcheck.c:35
#: ../src/programs/pkcheck.c:36
#, c-format
msgid ""
"Usage:\n"
......@@ -114,7 +117,7 @@ msgstr ""
" DZIAŁANIA\n"
" -u, --allow-user-interaction Pyta użytkownika, jeśli trzeba\n"
" -d, --details=KLUCZ WARTOŚĆ Dodaje (KLUCZ, WARTOŚĆ) do\n"
" informacji o działaniu\n"
" informacji o działaniu\n"
" --enable-internal-agent Używa wewnętrznego agenta\n"
" uwierzytelniania, jeśli trzeba\n"
" --list-temp Wyświetla listę tymczasowych\n"
......@@ -127,26 +130,26 @@ msgstr ""
" NAZWY_MAGISTRALI\n"
" --version Wyświetla wersję\n"
"\n"
"Prosimy zgłaszać błędy na (w języku angielskim): %s\n"
"Prosimy zgłaszać błędy na (w języku angielskim): %s\n"
"Strona domowa programu %s: <%s>\n"
#: ../src/programs/pkcheck.c:391 ../src/programs/pkcheck.c:424
#: ../src/programs/pkcheck.c:436
#: ../src/programs/pkcheck.c:393 ../src/programs/pkcheck.c:426
#: ../src/programs/pkcheck.c:438
#, c-format
msgid "%s: Argument expected after `%s'\n"
msgstr "%s: oczekiwano parametru po opcji „%s”\n"
#: ../src/programs/pkcheck.c:414
#: ../src/programs/pkcheck.c:416
#, c-format
msgid "%s: Invalid --process value `%s'\n"
msgstr "%s: nieprawidłowa wartość „%s” opcji --process\n"
#: ../src/programs/pkcheck.c:451 ../src/programs/pkcheck.c:460
#: ../src/programs/pkcheck.c:453 ../src/programs/pkcheck.c:462
#, c-format
msgid "%s: Two arguments expected after `--detail'\n"
msgstr "%s: oczekiwano dwóch parametrów po opcji „--detail”\n"
#: ../src/programs/pkcheck.c:521
#: ../src/programs/pkcheck.c:523
#, c-format
msgid "%s: Subject not specified\n"
msgstr "%s: nie podano tematu\n"
......@@ -155,7 +158,7 @@ msgstr "%s: nie podano tematu\n"
#. * translate the $(program) fragment - it will be expanded to the path
#. * of the program e.g. /bin/bash.
#.
#: ../src/programs/pkexec.c:794
#: ../src/programs/pkexec.c:790
msgid "Authentication is needed to run `$(program)' as the super user"
msgstr ""
"Wymagane jest uwierzytelnienie, aby uruchomić program „$(program)” jako "
......@@ -166,41 +169,41 @@ msgstr ""
#. * be expanded to the path of the program e.g. "/bin/bash" and the latter
#. * to the user e.g. "John Doe (johndoe)" or "johndoe".
#.
#: ../src/programs/pkexec.c:804
#: ../src/programs/pkexec.c:800
msgid "Authentication is needed to run `$(program)' as user $(user.display)"
msgstr ""
"Wymagane jest uwierzytelnienie, aby uruchomić program „$(program)” jako "
"użytkownik $(user.display)"
#: ../src/programs/pkttyagent.c:44
#: ../src/programs/pkttyagent.c:45
msgid "Don't replace existing agent if any"
msgstr "Bez zastępowania istniejących agentów, jeśli jakieś są"
#: ../src/programs/pkttyagent.c:48
#: ../src/programs/pkttyagent.c:49
msgid "Close FD when the agent is registered"
msgstr "Zamyka deskryptor pliku po zarejestrowaniu agenta"
#: ../src/programs/pkttyagent.c:48
#: ../src/programs/pkttyagent.c:49
msgid "FD"
msgstr "DP"
#: ../src/programs/pkttyagent.c:52
#: ../src/programs/pkttyagent.c:53
msgid "Register the agent for the specified process"
msgstr "Rejestruje agenta dla podanego procesu"
#: ../src/programs/pkttyagent.c:53
#: ../src/programs/pkttyagent.c:54
msgid "PID[,START_TIME]"
msgstr "PID[,CZAS_STARTOWY]"
#: ../src/programs/pkttyagent.c:57
msgid "Register the agent owner of BUS_NAME"
msgstr "Rejestruje właściciela agenta NAZWY_MAGISTRALI"
#: ../src/programs/pkttyagent.c:58
msgid "Register the agent for the owner of BUS_NAME"
msgstr "Rejestruje agenta dla właściciela NAZWY_MAGISTRALI"
#: ../src/programs/pkttyagent.c:57
#: ../src/programs/pkttyagent.c:58
msgid "BUS_NAME"
msgstr "NAZWA_MAGISTRALI"
#: ../src/programs/pkttyagent.c:127
#: ../src/programs/pkttyagent.c:129
#, c-format
msgid "%s: Invalid process specifier `%s'\n"
msgstr "%s: nieprawidłowe określenie procesu „%s”\n"
# Brazilian Portuguese translation for polkit.
# Copyright (C) 2015 polkit's COPYRIGHT HOLDER
# Copyright (C) 2018 polkit's COPYRIGHT HOLDER
# This file is distributed under the same license as the polkit package.
# Rafael Fontenelle <rffontenelle@gmail.com>, 2015.
#
# Rafael Fontenelle <rafaelff@gnome.org>, 2015, 2018.
msgid ""
msgstr ""
"Project-Id-Version: polkit master\n"
"Report-Msgid-Bugs-To: https://bugs.freedesktop.org/enter_bug.cgi?"
"product=PolicyKit&keywords=I18N+L10N&component=libpolkit\n"
"POT-Creation-Date: 2015-10-06 12:17+0000\n"
"PO-Revision-Date: 2015-10-06 17:18-0300\n"
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>\n"
"Report-Msgid-Bugs-To: https://gitlab.freedesktop.org/polkit/polkit/issues\n"
"POT-Creation-Date: 2018-08-20 21:47+0000\n"
"PO-Revision-Date: 2018-09-02 22:46-0200\n"
"Last-Translator: Rafael Fontenelle <rafaelff@gnome.org>\n"
"Language-Team: Brazilian Portuguese <gnome-pt_br-list@gnome.org>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 1.8.5\n"
"X-Generator: Virtaal 1.0.0-beta1\n"
#: ../actions/org.freedesktop.policykit.policy.in.h:1
msgid "Run a program as another user"
......@@ -42,27 +40,27 @@ msgstr ""
"Frobnicate (user=$(user), user.gecos=$(user.gecos), user.display=$(user."
"display), program=$(program), command_line=$(command_line))"
#: ../src/programs/pkaction.c:100
#: ../src/programs/pkaction.c:101
msgid "Only output information about ACTION"
msgstr "Exibe apenas informação sobre AÇÃO"
#: ../src/programs/pkaction.c:100
#: ../src/programs/pkaction.c:101
msgid "ACTION"
msgstr "AÇÃO"
#: ../src/programs/pkaction.c:104
#: ../src/programs/pkaction.c:105
msgid "Output detailed action information"
msgstr "Exibe informação detalhada da ação"
#: ../src/programs/pkaction.c:108 ../src/programs/pkttyagent.c:61
#: ../src/programs/pkaction.c:109 ../src/programs/pkttyagent.c:62
msgid "Show version"
msgstr "Mostra a versão"
#: ../src/programs/pkaction.c:130
#: ../src/programs/pkaction.c:132
msgid "[--action-id ACTION]"
msgstr "[--action-id AÇÃO]"
#: ../src/programs/pkaction.c:131 ../src/programs/pkttyagent.c:81
#: ../src/programs/pkaction.c:133 ../src/programs/pkttyagent.c:83
#, c-format
msgid ""
"Report bugs to: %s\n"
......@@ -71,13 +69,13 @@ msgstr ""
"Relate erros para: %s\n"
"Página web do %s: <%s>"
#: ../src/programs/pkaction.c:145 ../src/programs/pkcheck.c:491
#: ../src/programs/pkttyagent.c:95
#: ../src/programs/pkaction.c:147 ../src/programs/pkcheck.c:493
#: ../src/programs/pkttyagent.c:97
#, c-format
msgid "%s: Unexpected argument `%s'\n"
msgstr "%s: Argumento inesperado \"%s\"\n"
#: ../src/programs/pkcheck.c:35
#: ../src/programs/pkcheck.c:36
#, c-format
msgid ""
"Usage:\n"
......@@ -132,25 +130,24 @@ msgstr ""
"\n"
"Relate erros para: %s\n"
"Página web do %s: <%s>\n"
" 80\n"
#: ../src/programs/pkcheck.c:391 ../src/programs/pkcheck.c:424
#: ../src/programs/pkcheck.c:436
#: ../src/programs/pkcheck.c:393 ../src/programs/pkcheck.c:426
#: ../src/programs/pkcheck.c:438
#, c-format
msgid "%s: Argument expected after `%s'\n"
msgstr "%s: Esperava argumento após \"%s\"\n"
#: ../src/programs/pkcheck.c:414
#: ../src/programs/pkcheck.c:416
#, c-format
msgid "%s: Invalid --process value `%s'\n"
msgstr "%s: Valor \"%s\" inválido de --process\n"
#: ../src/programs/pkcheck.c:451 ../src/programs/pkcheck.c:460
#: ../src/programs/pkcheck.c:453 ../src/programs/pkcheck.c:462
#, c-format
msgid "%s: Two arguments expected after `--detail'\n"
msgstr "%s: Dois argumentos esperados após \"--detail\"\n"
#: ../src/programs/pkcheck.c:521
#: ../src/programs/pkcheck.c:523
#, c-format
msgid "%s: Subject not specified\n"
msgstr "%s: Sujeito não especificado\n"
......@@ -159,7 +156,7 @@ msgstr "%s: Sujeito não especificado\n"
#. * translate the $(program) fragment - it will be expanded to the path
#. * of the program e.g. /bin/bash.
#.
#: ../src/programs/pkexec.c:794
#: ../src/programs/pkexec.c:790
msgid "Authentication is needed to run `$(program)' as the super user"
msgstr ""
"A autenticação é necessária para executar `$(program)' como o superusuário"
......@@ -169,41 +166,41 @@ msgstr ""
#. * be expanded to the path of the program e.g. "/bin/bash" and the latter
#. * to the user e.g. "John Doe (johndoe)" or "johndoe".
#.
#: ../src/programs/pkexec.c:804
#: ../src/programs/pkexec.c:800
msgid "Authentication is needed to run `$(program)' as user $(user.display)"
msgstr ""
"A autenticação é necessária para executar `$(program)' como o usuário "
"$(user.display)"
#: ../src/programs/pkttyagent.c:44
#: ../src/programs/pkttyagent.c:45
msgid "Don't replace existing agent if any"
msgstr "Não substitui o agente existente, seu houver"
#: ../src/programs/pkttyagent.c:48
#: ../src/programs/pkttyagent.c:49
msgid "Close FD when the agent is registered"
msgstr "Fecha o descritor de arquivo FD quando o agente é registrado"
#: ../src/programs/pkttyagent.c:48
#: ../src/programs/pkttyagent.c:49
msgid "FD"
msgstr "FD"
#: ../src/programs/pkttyagent.c:52
#: ../src/programs/pkttyagent.c:53
msgid "Register the agent for the specified process"
msgstr "Registra o agente para o processo especificado"
#: ../src/programs/pkttyagent.c:53
#: ../src/programs/pkttyagent.c:54
msgid "PID[,START_TIME]"
msgstr "PID[,HORÁRIO_INÍCIO]"
#: ../src/programs/pkttyagent.c:57
msgid "Register the agent owner of BUS_NAME"
msgstr "Registra o dono do agente do BARRAMENTO"
#: ../src/programs/pkttyagent.c:58
msgid "Register the agent for the owner of BUS_NAME"
msgstr "Registra o agente para o dono do BARRAMENTO"
#: ../src/programs/pkttyagent.c:57
#: ../src/programs/pkttyagent.c:58
msgid "BUS_NAME"
msgstr "BARRAMENTO"
#: ../src/programs/pkttyagent.c:127
#: ../src/programs/pkttyagent.c:129
#, c-format
msgid "%s: Invalid process specifier `%s'\n"
msgstr "%s: Especificador do processo \"%s\" inválido\n"
msgstr "%s: Especificador do processo \"%s\" inválido\n"
\ No newline at end of file
......@@ -102,8 +102,6 @@ main (int argc, char *argv[])
PolkitAuthority *authority;
GCancellable *cancellable;
g_type_init ();
if (argc != 2)
{
g_printerr ("usage: %s <action_id>\n", argv[0]);
......
......@@ -19,7 +19,8 @@
* Author: David Zeuthen <davidz@redhat.com>
*/
#define _GNU_SOURCE
#include "config.h"
#include <glib.h>
#include <unistd.h>
#include <stdlib.h>
......
......@@ -352,10 +352,10 @@ polkit_action_description_new_for_gvariant (GVariant *value)
return action_description;
}
/* Note that this returns a floating value. */
GVariant *
polkit_action_description_to_gvariant (PolkitActionDescription *action_description)
{
GVariant *value;
GVariantBuilder builder;
GHashTableIter iter;
const gchar *a_key;
......@@ -368,17 +368,15 @@ polkit_action_description_to_gvariant (PolkitActionDescription *action_descripti
g_variant_builder_add (&builder, "{ss}", a_key, a_value);
/* TODO: note 'foo ? : ""' is a gcc specific extension (it's a short-hand for 'foo ? foo : ""') */
value = g_variant_new ("(ssssssuuua{ss})",
action_description->action_id ? : "",
action_description->description ? : "",
action_description->message ? : "",
action_description->vendor_name ? : "",
action_description->vendor_url ? : "",
action_description->icon_name ? : "",
action_description->implicit_any,
action_description->implicit_inactive,
action_description->implicit_active,
&builder);
return value;
return g_variant_new ("(ssssssuuua{ss})",
action_description->action_id ? : "",
action_description->description ? : "",
action_description->message ? : "",
action_description->vendor_name ? : "",
action_description->vendor_url ? : "",
action_description->icon_name ? : "",
action_description->implicit_any,
action_description->implicit_inactive,
action_description->implicit_active,
&builder);
}
......@@ -886,8 +886,6 @@ polkit_authority_check_authorization (PolkitAuthority *authority,
GAsyncReadyCallback callback,
gpointer user_data)
{
GVariant *subject_value;
GVariant *details_value;
CheckAuthData *data;
g_return_if_fail (POLKIT_IS_AUTHORITY (authority));
......@@ -896,11 +894,6 @@ polkit_authority_check_authorization (PolkitAuthority *authority,
g_return_if_fail (details == NULL || POLKIT_IS_DETAILS (details));
g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable));
subject_value = polkit_subject_to_gvariant (subject);
details_value = polkit_details_to_gvariant (details);
g_variant_ref_sink (subject_value);
g_variant_ref_sink (details_value);
data = g_new0 (CheckAuthData, 1);
data->authority = g_object_ref (authority);
data->simple = g_simple_async_result_new (G_OBJECT (authority),
......@@ -915,9 +908,9 @@ polkit_authority_check_authorization (PolkitAuthority *authority,
g_dbus_proxy_call (authority->proxy,
"CheckAuthorization",
g_variant_new ("(@(sa{sv})s@a{ss}us)",
subject_value,
polkit_subject_to_gvariant (subject), /* A floating value */
action_id,
details_value,
polkit_details_to_gvariant (details), /* A floating value */
flags,
data->cancellation_id != NULL ? data->cancellation_id : ""),
G_DBUS_CALL_FLAGS_NONE,
......@@ -925,8 +918,6 @@ polkit_authority_check_authorization (PolkitAuthority *authority,
cancellable,
(GAsyncReadyCallback) check_authorization_cb,
data);
g_variant_unref (subject_value);
g_variant_unref (details_value);
}
/**
......@@ -1058,20 +1049,16 @@ polkit_authority_register_authentication_agent (PolkitAuthority *authority,
GAsyncReadyCallback callback,
gpointer user_data)
{
GVariant *subject_value;
g_return_if_fail (POLKIT_IS_AUTHORITY (authority));
g_return_if_fail (POLKIT_IS_SUBJECT (subject));
g_return_if_fail (locale != NULL);
g_return_if_fail (g_variant_is_object_path (object_path));
g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable));
subject_value = polkit_subject_to_gvariant (subject);
g_variant_ref_sink (subject_value);
g_dbus_proxy_call (authority->proxy,
"RegisterAuthenticationAgent",
g_variant_new ("(@(sa{sv})ss)",
subject_value,
polkit_subject_to_gvariant (subject), /* A floating value */
locale,
object_path),
G_DBUS_CALL_FLAGS_NONE,
......@@ -1082,7 +1069,6 @@ polkit_authority_register_authentication_agent (PolkitAuthority *authority,
callback,
user_data,
polkit_authority_register_authentication_agent));
g_variant_unref (subject_value);
}
/**
......@@ -1375,19 +1361,15 @@ polkit_authority_unregister_authentication_agent (PolkitAuthority *authorit
GAsyncReadyCallback callback,
gpointer user_data)
{
GVariant *subject_value;
g_return_if_fail (POLKIT_IS_AUTHORITY (authority));
g_return_if_fail (POLKIT_IS_SUBJECT (subject));
g_return_if_fail (g_variant_is_object_path (object_path));
g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable));
subject_value = polkit_subject_to_gvariant (subject);
g_variant_ref_sink (subject_value);
g_dbus_proxy_call (authority->proxy,
"UnregisterAuthenticationAgent",
g_variant_new ("(@(sa{sv})s)",
subject_value,
polkit_subject_to_gvariant (subject), /* A floating value */
object_path),
G_DBUS_CALL_FLAGS_NONE,
-1,
......@@ -1397,7 +1379,6 @@ polkit_authority_unregister_authentication_agent (PolkitAuthority *authorit
callback,
user_data,
polkit_authority_unregister_authentication_agent));
g_variant_unref (subject_value);
}
/**
......@@ -1511,7 +1492,6 @@ polkit_authority_authentication_agent_response (PolkitAuthority *authority,
GAsyncReadyCallback callback,
gpointer user_data)
{
GVariant *identity_value;
/* Note that in reality, this API is only accessible to root, and
* only called from the setuid helper `polkit-agent-helper-1`.
*
......@@ -1526,14 +1506,12 @@ polkit_authority_authentication_agent_response (PolkitAuthority *authority,
g_return_if_fail (POLKIT_IS_IDENTITY (identity));
g_return_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable));
identity_value = polkit_identity_to_gvariant (identity);
g_variant_ref_sink (identity_value);
g_dbus_proxy_call (authority->proxy,
"AuthenticationAgentResponse2",
g_variant_new ("(us@(sa{sv}))",
(guint32)uid,
cookie,
identity_value),
polkit_identity_to_gvariant (identity)), /* A floating value */
G_DBUS_CALL_FLAGS_NONE,
-1,
cancellable,
......@@ -1542,7 +1520,6 @@ polkit_authority_authentication_agent_response (PolkitAuthority *authority,
callback,
user_data,
polkit_authority_authentication_agent_response));
g_variant_unref (identity_value);
}
/**
......@@ -1653,18 +1630,14 @@ polkit_authority_enumerate_temporary_authorizations (PolkitAuthority *author
GAsyncReadyCallback callback,
gpointer user_data)
{