summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-06-04Update the czech once more with newest pot file.HEADmasterTomas Chvatal1-22/+168
https://bugs.freedesktop.org/show_bug.cgi?id=65313 Signed-off-by: Tomas Chvatal <tomas.chvatal@gmail.com>
2013-06-03Add czech translation po file to distribution.Tomas Chvatal2-0/+66
https://bugs.freedesktop.org/show_bug.cgi?id=65313 Signed-off-by: Tomas Chvatal <tomas.chvatal@gmail.com>
2013-05-29Use GOnce for interface type registrationTomas Bzatek3-12/+18
Static local variable may not be enough since it doesn't provide locking. Related to these udisksd warnings: GLib-GObject-WARNING **: cannot register existing type `PolkitSubject' Thanks to Hans de Goede for spotting this! https://bugs.freedesktop.org/show_bug.cgi?id=65130
2013-05-15Post-release version bump to 0.112Miloslav Trmač2-1/+31
2013-05-15Update NEWS for releaseMiloslav Trmač1-5/+69
2013-05-15Fix inclusion of COPYING into documentation with srcdir != builddirMiloslav Trmač1-0/+1
https://bugs.freedesktop.org/show_bug.cgi?id=64197
2013-05-13Exit pkaction with status 0 on successMiloslav Trmač1-0/+2
https://bugs.freedesktop.org/show_bug.cgi?id=29936
2013-05-13Refuse unrecognized command-line operandsMiloslav Trmač3-0/+18
(Inconsistent options are still accepted.) https://bugs.freedesktop.org/show_bug.cgi?id=29936
2013-05-13Add bug reporting address and home page to --help outputMiloslav Trmač5-3/+22
... as required by GNU coding standards. https://bugs.freedesktop.org/show_bug.cgi?id=29936
2013-05-13Fix package version / bug report address mixingMiloslav Trmač1-2/+2
PACKAGE_VERSION curently contains the mailing list address as well; this leaks into output of --version and other places. While at it, update AM_INIT_AUTOMAKE to the new form and use correct m4 quoting at least for these lines. https://bugs.freedesktop.org/show_bug.cgi?id=29936
2013-05-13Don't spawn man for --helpMiloslav Trmač4-186/+141
Convert pkaction and pkttyagent to use GOptionContext. Don't convert pkcheck and only add --help output text because its non-standard --details(which requires two arguments) can't be implemented using GOptionContext. Don't touch pkexec, in a (futile?) attempt to minimize the amount of complex code running before authentication. This leaves the option processing lax as it was (e.g. accepting contradicting options, ignoring non-option arguments), and should only affect the handling of --help and behavior when invalid arguments are detected. https://bugs.freedesktop.org/show_bug.cgi?id=29936
2013-05-07Remove an unused va_startMiloslav Trmač1-1/+0
https://bugs.freedesktop.org/show_bug.cgi?id=64336
2013-05-07Fix a memory leakMiloslav Trmač1-0/+1
https://bugs.freedesktop.org/show_bug.cgi?id=64336
2013-05-07Drop unused variableMiloslav Trmač1-5/+0
https://bugs.freedesktop.org/show_bug.cgi?id=64336
2013-05-06Refuse non-string parameters to Polkit.spawn()Miloslav Trmač1-0/+6
Using integers or floating-point numbers could have resulted in a crash. Use JSVAL_IS_STRING() instead of implicit conversion through JS_ValueToString(); hopefully this will nudge the rule writer toward thinking more about the string conversion and the format of the resulting string. https://bugs.freedesktop.org/show_bug.cgi?id=63575
2013-05-06Fix handling of null returned from _runRulesMiloslav Trmač1-6/+6
https://bugs.freedesktop.org/show_bug.cgi?id=63575
2013-05-06Fix a TypeError when no admin rules are registeredMiloslav Trmač1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=63575
2013-05-06More warnings about using auth_self*Miloslav Trmač2-4/+28
Suggested by Colin Walters. https://bugs.freedesktop.org/show_bug.cgi?id=57284
2013-05-06Use auth_admin* instead of auth_self* in examplesMiloslav Trmač3-4/+4
From time to time, application developers just copy example configuration without examining it in details. Because polkit is typically used to control access to system-level operations, the policy (and therefore the examples) should limit access to system administrators only.
2013-05-06man: Fix pkaction man page wrt to --action-id optionMichael Biebl1-1/+1
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=641527
2013-04-23jsauthority: Work with mozjs-17.0 tooColin Walters2-7/+57
Based on work by Tim Lunn <tim@feathertop.org>, reworked on top of a regular dynamically-linked js. https://bugs.freedesktop.org/show_bug.cgi?id=59830
2013-04-23Revert "Dynamically load libmozjs185.so and cope with it not being available"Colin Walters2-304/+147
The new plan is to hard-require JS. See discussion in https://bugs.freedesktop.org/show_bug.cgi?id=59830 This reverts commit 34cb6353b9affd6c04ea480df5fc39d0ca72319d. Conflicts: src/polkitbackend/polkitbackendjsauthority.c
2013-04-23jsauthority: Use JSVAL_NULL rather than {0} struct initializationColin Walters1-6/+6
This is future compatible with mozjs-17.0. https://bugs.freedesktop.org/show_bug.cgi?id=59830
2013-04-23jsauthority: We can really only handle a stringColin Walters1-1/+1
JSVAL_TO_STRING would barf on a null value, so don't claim to handle it.
2013-04-18Add a FIXME to polkitprivate.hMiloslav Trmač1-0/+10
See discussion in https://bugs.freedesktop.org/show_bug.cgi?id=63573 .
2013-04-15Add annotations for element types of returned listsMiloslav Trmač2-16/+16
... to silence warnings when g-ir-scanner warnings are enabled. https://bugs.freedesktop.org/show_bug.cgi?id=63573
2013-04-15Fix an obvious docstring typo.Miloslav Trmač1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=63573
2013-04-15Fold enum documentation into relevant classesMiloslav Trmač2-25/+3
Fold PolkitImplicitAuthorization and PolkitCheckAuthorizationFlags into the relevant classes in the section list; polkit-1-docs.xml is already not including the enum documents. https://bugs.freedesktop.org/show_bug.cgi?id=63573
2013-04-15Document deprecated functions.Miloslav Trmač3-0/+19
All of these are a part of public API with some external users. Do the minimum to avoid a warning; ideally we should also add a *_DISABLE_DEPRECATED macro etc. https://bugs.freedesktop.org/show_bug.cgi?id=63573
2013-04-15Include documentation of polkit_action_description_get_annotation_keysMiloslav Trmač1-0/+1
This seems a fairly obvious public counterpart of polkit_action_description_get_annotation, and it is used in pkaction.c in what is pretty much an example of public API use. https://bugs.freedesktop.org/show_bug.cgi?id=63573
2013-04-15Move polkit_temporary_authorization_new to private header file.Miloslav Trmač2-5/+5
The related new_for_gvariant() is private already, this seems also intended to be private. searchco.de doesn't show any external users. https://bugs.freedesktop.org/show_bug.cgi?id=63573
2013-04-15Fix most "undocumented symbol" warningsMiloslav Trmač2-4/+6
- Mark private header files as private. - Fix obvious typos in the section file. https://bugs.freedesktop.org/show_bug.cgi?id=63573
2013-04-15Leave out backend from gtk-doc generationMiloslav Trmač1-1/+1
... which silences warnings about these classes missing from polkit-1-sections.txt https://bugs.freedesktop.org/show_bug.cgi?id=63573
2013-04-15Add annotation glossaryMiloslav Trmač1-0/+2
as described at the end of https://live.gnome.org/GObjectIntrospection/Annotations. Fixes a huge number of warnings. https://bugs.freedesktop.org/show_bug.cgi?id=63573
2013-04-15Fix various memory leaks.Miloslav Trmač4-3/+9
The XML_ParserCreate_MM one was found by Florian Weimer in https://bugzilla.redhat.com/show_bug.cgi?id=888728 . This should cover everything found by valgrind on the JS authority test, augmented with a call to polkit_backend_authority_enumerate_actions() to verify the XML_ParserCreate_MM case. https://bugs.freedesktop.org/show_bug.cgi?id=63492
2013-04-12configure: Specify GLib min/max versionColin Walters3-0/+6
Mainly to avoid deprecation warnings about g_type_init(). https://bugs.freedesktop.org/show_bug.cgi?id=63440
2013-04-12Fix DOC_SOURCE_DIR for builddir != srcdirMiloslav Trmač1-2/+5
This snippet comes from gtk-doc 1.18 examples/Makefile.am; we might want to update all of the file but that's not strictly necessary. https://bugs.freedesktop.org/show_bug.cgi?id=63479
2013-04-12Fix build with srcdir!=builddirMiloslav Trmač1-0/+4
gtk-doc.make is attempting to add --path automatically but there is a bug in the script in gtk-doc 1.18 https://bugs.freedesktop.org/show_bug.cgi?id=63479
2013-04-12Clean (git status) after autogen.shMiloslav Trmač2-0/+26
Ignore most automatically created files. Add empty ChangeLog (to avoid surprises if anyone wanted to add content later). https://bugs.freedesktop.org/show_bug.cgi?id=63479
2013-04-11Add missing #include <sys/wait.h>Samuli Suominen1-0/+1
This is required for WIFEXITED, WEXITSTATUS, WIFSIGNALED, WTERMSIG. This must have been implicit and nobody noticed, but isn't with SH4 architecture (Linux, Gentoo, GNU gcc and glibc). http://bugs.freedesktop.org/show_bug.cgi?id=62220
2013-04-11update types for js188darkxst1-20/+20
For esr17, mozilla have removed many of the custom typedefs and replaced them with standard types. For example jsuint -> guint32, uintN -> unsigned and int32 -> gint32. These changes are backwards compatible with js185 https://bugs.freedesktop.org/show_bug.cgi?id=59781
2013-04-11mocklibc: Only require autoconf 2.63Colin Walters1-1/+1
It still works, and this lets polkit build on RHEL6.
2013-04-11pkexec: Set process environment from pam_getenvlist()Steve Langasek1-0/+10
Various pam modules provide environment variables that are intended to be set in the environment of the pam session. pkexec needs to process the output of pam_getenvlist() to get these. https://bugs.freedesktop.org/show_bug.cgi?id=62016
2013-04-11polkitagent, pkexec: Respect SUID_CFLAGS and SUID_LDFLAGSVincent Untz3-0/+17
This is a good way for distributors to use -fPIE/-pie. https://bugs.freedesktop.org/attachment.cgi?id=57584
2013-04-11build: try harder to avoid systemd/consolekit misconfigurationGiovanni Campagna1-0/+20
Check if the system is booting systemd, and fail if the automatic configuration picks the wrong value. Emit a warning if the user explicitly chose one way or the other, to account for cross-building. https://bugs.freedesktop.org/show_bug.cgi?id=61127
2013-04-10Fix the build with automake 1.13Nuno Araujo2-2/+2
In Automake 1.13, the long-deprecated macro AM_CONFIG_HEADER (deprecated since 2002) has been removed in favour of AC_CONFIG_HEADERS. Signed-off-by: David Zeuthen <zeuthen@gmail.com>
2013-01-09Post-release version bump to 0.111David Zeuthen2-2/+29
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
2013-01-09Update NEWS for releaseDavid Zeuthen1-3/+14
Signed-off-by: David Zeuthen <zeuthen@gmail.com>
2013-01-09Remove AM_PROG_CC_STDCDavid Zeuthen1-1/+0
Part of https://bugs.freedesktop.org/show_bug.cgi?id=59091 Signed-off-by: David Zeuthen <zeuthen@gmail.com>
2013-01-09Use mutex and condition variables properlyDavid Zeuthen1-4/+5
This was pointed out in bug 57325. https://bugs.freedesktop.org/show_bug.cgi?id=57325 Signed-off-by: David Zeuthen <zeuthen@gmail.com>