Update to 0.114
This commit is contained in:
parent
0dcd449f06
commit
668cc92428
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,3 +24,4 @@ polkit-0.98.tar.gz
|
|||||||
/polkit-0.112.tar.gz.sign
|
/polkit-0.112.tar.gz.sign
|
||||||
/polkit-0.113.tar.gz
|
/polkit-0.113.tar.gz
|
||||||
/polkit-0.113.tar.gz.sign
|
/polkit-0.113.tar.gz.sign
|
||||||
|
/polkit-0.114.tar.gz
|
||||||
|
@ -0,0 +1,87 @@
|
|||||||
|
From 373705b35e7f6c7dc83de5e0a3ce11ecd15d0409 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ray Strode <rstrode@redhat.com>
|
||||||
|
Date: Tue, 3 Apr 2018 15:26:37 -0400
|
||||||
|
Subject: [PATCH] jsauthority: pass "%s" format string to remaining report
|
||||||
|
function
|
||||||
|
|
||||||
|
commit 00adeee1b62 attempted to add a "%s" format string to the
|
||||||
|
two JS_Report invocations that needed it, but somehow only got
|
||||||
|
one them.
|
||||||
|
|
||||||
|
This commit gets the other one.
|
||||||
|
|
||||||
|
https://bugzilla.gnome.org/show_bug.cgi?id=105865
|
||||||
|
---
|
||||||
|
src/polkitbackend/polkitbackendjsauthority.cpp | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp
|
||||||
|
index 9746c47..517f3c6 100644
|
||||||
|
--- a/src/polkitbackend/polkitbackendjsauthority.cpp
|
||||||
|
+++ b/src/polkitbackend/polkitbackendjsauthority.cpp
|
||||||
|
@@ -1265,61 +1265,61 @@ polkit_backend_js_authority_check_authorization_sync (PolkitBackendInteractiveAu
|
||||||
|
}
|
||||||
|
|
||||||
|
good = TRUE;
|
||||||
|
|
||||||
|
out:
|
||||||
|
if (!good)
|
||||||
|
ret = POLKIT_IMPLICIT_AUTHORIZATION_NOT_AUTHORIZED;
|
||||||
|
g_free (ret_str);
|
||||||
|
|
||||||
|
JS_MaybeGC (authority->priv->cx);
|
||||||
|
|
||||||
|
JS_EndRequest (authority->priv->cx);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
static bool
|
||||||
|
js_polkit_log (JSContext *cx,
|
||||||
|
unsigned argc,
|
||||||
|
JS::Value *vp)
|
||||||
|
{
|
||||||
|
/* PolkitBackendJsAuthority *authority = POLKIT_BACKEND_JS_AUTHORITY (JS_GetContextPrivate (cx)); */
|
||||||
|
bool ret = false;
|
||||||
|
char *s;
|
||||||
|
|
||||||
|
JS::CallArgs args = JS::CallArgsFromVp (argc, vp);
|
||||||
|
|
||||||
|
s = JS_EncodeString (cx, args[0].toString ());
|
||||||
|
- JS_ReportWarningUTF8 (cx, s);
|
||||||
|
+ JS_ReportWarningUTF8 (cx, "%s", s);
|
||||||
|
JS_free (cx, s);
|
||||||
|
|
||||||
|
ret = true;
|
||||||
|
|
||||||
|
args.rval ().setUndefined (); /* return undefined */
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------------------------------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
static const gchar *
|
||||||
|
get_signal_name (gint signal_number)
|
||||||
|
{
|
||||||
|
switch (signal_number)
|
||||||
|
{
|
||||||
|
#define _HANDLE_SIG(sig) case sig: return #sig;
|
||||||
|
_HANDLE_SIG (SIGHUP);
|
||||||
|
_HANDLE_SIG (SIGINT);
|
||||||
|
_HANDLE_SIG (SIGQUIT);
|
||||||
|
_HANDLE_SIG (SIGILL);
|
||||||
|
_HANDLE_SIG (SIGABRT);
|
||||||
|
_HANDLE_SIG (SIGFPE);
|
||||||
|
_HANDLE_SIG (SIGKILL);
|
||||||
|
_HANDLE_SIG (SIGSEGV);
|
||||||
|
_HANDLE_SIG (SIGPIPE);
|
||||||
|
_HANDLE_SIG (SIGALRM);
|
||||||
|
_HANDLE_SIG (SIGTERM);
|
||||||
|
_HANDLE_SIG (SIGUSR1);
|
||||||
|
_HANDLE_SIG (SIGUSR2);
|
||||||
|
--
|
||||||
|
2.16.2
|
||||||
|
|
20
polkit.spec
20
polkit.spec
@ -5,18 +5,13 @@
|
|||||||
|
|
||||||
Summary: An authorization framework
|
Summary: An authorization framework
|
||||||
Name: polkit
|
Name: polkit
|
||||||
Version: 0.113
|
Version: 0.114
|
||||||
Release: 16%{?dist}
|
Release: 1%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://www.freedesktop.org/wiki/Software/polkit
|
URL: http://www.freedesktop.org/wiki/Software/polkit
|
||||||
Source0: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz
|
Source0: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz
|
||||||
Source1: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz.sign
|
Source1: http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz.sign
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=99741
|
Patch0: 0001-jsauthority-pass-s-format-string-to-remaining-report.patch
|
||||||
Patch0: polkit-0.113-agent-leaks.patch
|
|
||||||
# https://bugs.freedesktop.org/show_bug.cgi?id=99741
|
|
||||||
Patch1: polkit-0.113-polkitpermission-leak.patch
|
|
||||||
# already upstream
|
|
||||||
Patch2: polkit-0.113-itstool.patch
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
BuildRequires: glib2-devel >= 2.30.0
|
BuildRequires: glib2-devel >= 2.30.0
|
||||||
BuildRequires: expat-devel
|
BuildRequires: expat-devel
|
||||||
@ -26,6 +21,7 @@ BuildRequires: intltool
|
|||||||
BuildRequires: gobject-introspection-devel
|
BuildRequires: gobject-introspection-devel
|
||||||
BuildRequires: systemd, systemd-devel
|
BuildRequires: systemd, systemd-devel
|
||||||
BuildRequires: mozjs17-devel
|
BuildRequires: mozjs17-devel
|
||||||
|
BuildRequires: git
|
||||||
|
|
||||||
%if 0%{?enable_autoreconf}
|
%if 0%{?enable_autoreconf}
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
@ -94,10 +90,7 @@ Libraries files for polkit.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -S git
|
||||||
%patch0 -p1 -b .agent-leaks
|
|
||||||
%patch1 -p1 -b .polkitpermission-leak
|
|
||||||
%patch2 -p1 -b .itstool
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if 0%{?enable_autoreconf}
|
%if 0%{?enable_autoreconf}
|
||||||
@ -185,6 +178,9 @@ exit 0
|
|||||||
%{_libdir}/girepository-1.0/*.typelib
|
%{_libdir}/girepository-1.0/*.typelib
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 03 2018 Ray Strode <rstrode@redhat.com> - 0.114-1
|
||||||
|
- Update to 0.114
|
||||||
|
|
||||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.113-16
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.113-16
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
3
sources
3
sources
@ -1,2 +1 @@
|
|||||||
4b77776c9e4f897dcfe03b2c34198edf polkit-0.113.tar.gz
|
SHA512 (polkit-0.114.tar.gz) = 49cdf9dd3663714b1c6569ad8740cb413d9c5bd5c11e4bdbba3ce82b744f36638b652547edff9203caab9287834bc68a1d6a4895ec7a188fa1524dc1e9c9b4ea
|
||||||
86b92a63394de618898b43f5722e9fe2 polkit-0.113.tar.gz.sign
|
|
||||||
|
Loading…
Reference in New Issue
Block a user