![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package PolicyKit checked in at Fri Aug 10 17:13:39 CEST 2007. -------- --- PolicyKit/PolicyKit.changes 2007-03-08 08:52:54.000000000 +0100 +++ /mounts/work_src_done/STABLE/PolicyKit/PolicyKit.changes 2007-08-10 09:42:26.190058000 +0200 @@ -1,0 +2,43 @@ +Fri Aug 10 09:42:12 CEST 2007 - coolo@suse.de + +- remove Permissions script - went to permissions + +------------------------------------------------------------------- +Fri Aug 3 17:54:37 CEST 2007 - dkukawka@suse.de + +- added already upstream send patches: + - polkit-allow-DBus_v0.61.diff: allow build against same DBus + versions as HAL + - polkit-fix-code_docu.diff + - polkit-fix-compilerWarning.diff + - polkit-fix-struct_naming.diff + - polkit-fix-uid_t-compilerwarning.diff + +------------------------------------------------------------------- +Tue Jul 31 01:51:43 CEST 2007 - kay.sievers@suse.de + +- update to git HEAD + move PAM stack usage to very tiny separate setuid root helper + add waitpid() to get SIGCHLD in error path handling + +------------------------------------------------------------------- +Sun Jul 29 22:51:47 CEST 2007 - kay.sievers@suse.de + +- add /etc/permissions.d/PolicyKit and enable setguid for helper + +------------------------------------------------------------------- +Sun Jul 29 13:16:22 CEST 2007 - kay.sievers@suse.de + +- configure --with-os-type=suse +- install helper binaries in %{_libexecdir}/PolicyKit/ + +------------------------------------------------------------------- +Fri Jul 27 04:15:41 CEST 2007 - kay.sievers@suse.de + +- update to version 0.4 + complete rewrite, not a daemon anymore +- BETA checkin to prepare HAL and resmgr update + "chmod 2775 /usr/lib(64)/polkit-grant-helper" + is needed for now, until /etc/permissions.secure is updated + +------------------------------------------------------------------- Old: ---- PolicyKit-0.2_git20060822.tar.bz2 PolicyKit-build.diff PolicyKit-dbus-reconnect-thoenig-01.patch PolicyKit-resmgr.diff PolicyKit-rootneedsnoauth.diff rc.policykitd New: ---- PolicyKit-0.4.tar.bz2 PolicyKit-git-HEAD.patch polkit-allow-DBus_v0.61.diff polkit-fix-code_docu.diff polkit-fix-compilerWarning.diff polkit-fix-struct_naming.diff polkit-fix-uid_t-compilerwarning.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ PolicyKit.spec ++++++ --- /var/tmp/diff_new_pack.B30817/_old 2007-08-10 17:13:09.000000000 +0200 +++ /var/tmp/diff_new_pack.B30817/_new 2007-08-10 17:13:09.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package PolicyKit (Version 0.2_git20060822) +# spec file for package PolicyKit (Version 0.4) # # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine @@ -11,28 +11,29 @@ # norootforbuild Name: PolicyKit -BuildRequires: dbus-1-glib-devel glib2-devel pam-devel pkg-config -# Only for directory ownership: -BuildRequires: resmgr +BuildRequires: dbus-1-glib-devel glib2-devel gtk-doc pkg-config xmlto +BuildRequires: libexpat-devel pam-devel +PreReq: permissions /usr/sbin/groupadd /usr/sbin/useradd URL: http://www.freedesktop.org/wiki/Software/hal -License: GNU Library General Public License v. 2.0 and 2.1 (LGPL) -Group: System/Daemons -Version: 0.2_git20060822 -Release: 46 +License: GPL v2 only, PolicyKit is licensed to you under the GNU General Public License version 2. +Group: System/Libraries +Version: 0.4 +Release: 6 Autoreqprov: on Summary: PolicyKit -Source: %{name}-%{version}.tar.bz2 -Source1: rc.policykitd -Patch0: PolicyKit-build.diff -Patch1: PolicyKit-rootneedsnoauth.diff -Patch2: PolicyKit-resmgr.diff -Patch3: PolicyKit-dbus-reconnect-thoenig-01.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build -Requires: resmgr +Requires: ConsoleKit +Source: %{name}-%{version}.tar.bz2 +Patch0: PolicyKit-git-HEAD.patch +Patch1: polkit-allow-DBus_v0.61.diff +Patch2: polkit-fix-code_docu.diff +Patch3: polkit-fix-compilerWarning.diff +Patch4: polkit-fix-struct_naming.diff +Patch5: polkit-fix-uid_t-compilerwarning.diff %description -PolicyKit is a framework for defining policy for system-wide components -and for desktop pieces to configure it. It is used by HAL. +PolicyKit is a toolkit for defining and handling the policy that allows +unprivileged processes to speak to privileged processes. @@ -42,12 +43,11 @@ %package devel Summary: Development files for PolicyKit -Group: System/Daemons +Group: Development/Libraries/Other Requires: %{name} = %{version} dbus-1-glib-devel glib2-devel %description devel -This package contains the header files and libraries necessary for -developing applications which use PolicyKit. +This package contains the development files for PolicyKit. @@ -57,7 +57,7 @@ %package doc Summary: Documentation for PolicyKit -Group: System/Daemons +Group: Documentation/Other Requires: %{name} = %{version} %description doc @@ -75,68 +75,118 @@ %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 +%patch5 -p1 %build -autoreconf -f -i -%configure\ - --enable-resmgr\ - --with-os-type=suse\ - --with-pam-module-dir=/%{_lib}/security\ - --with-pid-file=/var/run/polkit/pid\ - --with-polkit-group=polkit\ - --with-polkit-user=polkit -make %{?jobs:-j%jobs} +autoreconf -fi +%configure \ + --with-os-type=suse \ + --libexecdir=%{_libexecdir}/PolicyKit \ + --docdir=%{_datadir}/doc/packages/PolicyKit \ + --enable-docbook-docs +make %install %makeinstall -mkdir -p $RPM_BUILD_ROOT/etc/init.d -mkdir -p $RPM_BUILD_ROOT/usr/sbin -install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/policykitd -ln -s %{_sysconfdir}/init.d/policykitd $RPM_BUILD_ROOT%{_sbindir}/rcpolicykitd -mkdir -p $RPM_BUILD_ROOT%{_docdir} -#mv $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}-%{version} $RPM_BUILD_ROOT/%{_docdir}/%{name} -# no need for pam module -rm -rf %{buildroot}/%{_lib}/security +install -m 644 {README,AUTHORS,ChangeLog,COPYING,NEWS} $RPM_BUILD_ROOT/%{_datadir}/doc/packages/PolicyKit +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f $RPM_BUILD_ROOT%{_libdir}/*.a +chmod 0755 $RPM_BUILD_ROOT%{_libexecdir}/PolicyKit/polkit-grant-helper %clean rm -rf $RPM_BUILD_ROOT -%preun -%{stop_on_removal policykitd} +%pre +if + getent group polkituser >/dev/null +then + : OK group polkituser already present +else + /usr/sbin/groupadd -o -r polkituser 2>/dev/null || : +fi +if + getent passwd polkituser >/dev/null +then + : OK user polkituser already present +else + /usr/sbin/useradd -r -g polkituser -c "PolicyKit" -d /var/run/PolicyKit -o polkituser 2>/dev/null || : +fi %post /sbin/ldconfig -%{insserv_force_if_yast policykitd} +%run_permissions + +%verifyscript +%verify_permissions -e %{_libexecdir}/polkit-grant-helper +%verify_permissions -e %{_libexecdir}/polkit-grant-helper-pam %postun /sbin/ldconfig -%{restart_on_update policykitd} -%{insserv_cleanup} %files %defattr(-,root,root) -%doc AUTHORS ChangeLog COPYING INSTALL NEWS README %{_bindir}/* -%{_libdir}/*.so.* -%{_sbindir}/* -%{_sysconfdir}/PolicyKit -%{_sysconfdir}/dbus-1/system.d/PolicyKit.conf -%{_sysconfdir}/init.d/policykitd -%{_sysconfdir}/pam.d/policy-kit -%{_sysconfdir}/resmgr.conf.d/*.conf +%{_libdir}/lib*.so.* +%{_mandir}/man1/* +%{_mandir}/man5/* +%{_mandir}/man8/* +%dir %{_sysconfdir}/PolicyKit +%config(noreplace) %{_sysconfdir}/PolicyKit/PolicyKit.conf +%config(noreplace) %{_sysconfdir}/pam.d/polkit +%dir %{_libexecdir}/PolicyKit +%verify(not mode) %attr(2755,root,polkituser) %{_libexecdir}/PolicyKit/polkit-grant-helper +%verify(not mode) %attr(4755,root,root) %{_libexecdir}/PolicyKit/polkit-grant-helper-pam +%attr(0775,polkituser,polkituser) %dir %{_localstatedir}/run/PolicyKit +%attr(0775,polkituser,polkituser) %dir %{_localstatedir}/lib/PolicyKit +%attr(0644,root,root) %{_localstatedir}/lib/PolicyKit/reload +%dir %{_datadir}/PolicyKit +%dir %{_datadir}/PolicyKit/policy +%{_datadir}/PolicyKit/config.dtd %files devel %defattr(-,root,root) -%{_includedir}/libpolkit -%{_libdir}/*.so -%{_libdir}/*.*a -%{_libdir}/pkgconfig/*.pc +%{_libdir}/lib*.so +%{_libdir}/pkgconfig/* +%{_includedir}/* %files doc %defattr(-,root,root) -%{_datadir}/gtk-doc +%doc %dir %{_datadir}/doc/packages/PolicyKit/ +%doc %{_datadir}/doc/packages/PolicyKit/* +%dir %{_datadir}/gtk-doc/html/polkit +%{_datadir}/gtk-doc/html/polkit/* +%dir %{_datadir}/gtk-doc/html/polkit-dbus +%{_datadir}/gtk-doc/html/polkit-dbus/* +%dir %{_datadir}/gtk-doc/html/polkit-grant +%{_datadir}/gtk-doc/html/polkit-grant/* %changelog +* Fri Aug 10 2007 - coolo@suse.de +- remove Permissions script - went to permissions +* Fri Aug 03 2007 - dkukawka@suse.de +- added already upstream send patches: + - polkit-allow-DBus_v0.61.diff: allow build against same DBus + versions as HAL + - polkit-fix-code_docu.diff + - polkit-fix-compilerWarning.diff + - polkit-fix-struct_naming.diff + - polkit-fix-uid_t-compilerwarning.diff +* Tue Jul 31 2007 - kay.sievers@suse.de +- update to git HEAD + move PAM stack usage to very tiny separate setuid root helper + add waitpid() to get SIGCHLD in error path handling +* Sun Jul 29 2007 - kay.sievers@suse.de +- add /etc/permissions.d/PolicyKit and enable setguid for helper +* Sun Jul 29 2007 - kay.sievers@suse.de +- configure --with-os-type=suse +- install helper binaries in %%{_libexecdir}/PolicyKit/ +* Fri Jul 27 2007 - kay.sievers@suse.de +- update to version 0.4 + complete rewrite, not a daemon anymore +- BETA checkin to prepare HAL and resmgr update + "chmod 2775 /usr/lib(64)/polkit-grant-helper" + is needed for now, until /etc/permissions.secure is updated * Thu Mar 08 2007 - lrupp@suse.de - remove obsolete %%pre section * Wed Mar 07 2007 - sbrabec@suse.cz ++++++ PolicyKit-0.2_git20060822.tar.bz2 -> PolicyKit-0.4.tar.bz2 ++++++ ++++ 68490 lines of diff (skipped) ++++++ PolicyKit-git-HEAD.patch ++++++ ++++ 1065 lines (skipped) ++++++ polkit-allow-DBus_v0.61.diff ++++++ diff --git a/configure.in b/configure.in index 1581fb7..4fb5a20 100644 --- a/configure.in +++ b/configure.in @@ -121,7 +121,7 @@ PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.6.0]) AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS) -PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.0]) +PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.61]) AC_SUBST(DBUS_CFLAGS) AC_SUBST(DBUS_LIBS) diff --git a/polkit-dbus/polkit-dbus.h b/polkit-dbus/polkit-dbus.h index b39e091..2934422 100644 --- a/polkit-dbus/polkit-dbus.h +++ b/polkit-dbus/polkit-dbus.h @@ -28,6 +28,11 @@ #define POLKIT_DBUS_H #include <polkit/polkit.h> + +#ifndef DBUS_API_SUBJECT_TO_CHANGE +#define DBUS_API_SUBJECT_TO_CHANGE +#endif + #include <dbus/dbus.h> PolKitSession *polkit_session_new_from_objpath (DBusConnection *con, const char *objpath, uid_t uid, DBusError *error); ++++++ polkit-fix-code_docu.diff ++++++ diff --git a/polkit-grant/polkit-grant.h b/polkit-grant/polkit-grant.h index 5211b6f..2544d90 100644 --- a/polkit-grant/polkit-grant.h +++ b/polkit-grant/polkit-grant.h @@ -125,7 +125,7 @@ typedef void (*PolKitGrantConversationTextInfo) (PolKitGrant *polkit_grant, * Basically, this callback enables a program to provide an user * interface like this: * - * <programlisting> + * @code * +------------------------------------------------------------+ * | You need to authenticate to access the volume 'Frobnicator | * | Adventures Vol 2' | @@ -138,7 +138,7 @@ typedef void (*PolKitGrantConversationTextInfo) (PolKitGrant *polkit_grant, * | | * | [Cancel] [Authenticate] | * +------------------------------------------------------------+ - * </programlisting> + * @endcode * * This dialog assumes that @grant_type passed was * #POLKIT_RESULT_ONLY_VIA_SELF_AUTH_KEEP_ALWAYS. By ticking the @@ -151,7 +151,7 @@ typedef void (*PolKitGrantConversationTextInfo) (PolKitGrant *polkit_grant, * #POLKIT_RESULT_ONLY_VIA_SELF_AUTH_KEEP_SESSION. Then the dialog * should look like this: * - * <programlisting> + * @code * +------------------------------------------------------------+ * | You need to authenticate to access the volume 'Frobnicator | * | Adventures Vol 2' | @@ -162,13 +162,13 @@ typedef void (*PolKitGrantConversationTextInfo) (PolKitGrant *polkit_grant, * | | * | [Cancel] [Authenticate] | * +------------------------------------------------------------+ - * </programlisting> + * @endcode * * Finally, if the @grant_type value passed is * e.g. #POLKIT_RESULT_ONLY_VIA_SELF_AUTH, there are no options to * click.: * - * <programlisting> + * @code * +------------------------------------------------------------+ * | You need to authenticate to access the volume 'Frobnicator | * | Adventures Vol 2' | @@ -177,7 +177,7 @@ typedef void (*PolKitGrantConversationTextInfo) (PolKitGrant *polkit_grant, * | | * | [Cancel] [Authenticate] | * +------------------------------------------------------------+ - * </programlisting> + * @endcode * * Of course, these examples also applies to * #POLKIT_RESULT_ONLY_VIA_ADMIN_AUTH and friends. @@ -220,7 +220,7 @@ typedef void (*PolKitGrantDone) (PolKitGrant *polkit_grant, * * For glib mainloop, the function will typically look like this: * - * <programlisting> + * @code * static void * child_watch_func (GPid pid, * gint status, @@ -235,7 +235,7 @@ typedef void (*PolKitGrantDone) (PolKitGrant *polkit_grant, * { * return g_child_watch_add (pid, child_watch_func, polkit_grant); * } - * </programlisting> + * @endcode * * Returns: 0 if the watch couldn't be set up; otherwise an unique * identifier for the watch. @@ -255,7 +255,7 @@ typedef int (*PolKitGrantAddChildWatch) (PolKitGrant *polkit_grant, * * For glib mainloop, the function will typically look like this: * - * <programlisting> + * @code * static gboolean * io_watch_have_data (GIOChannel *channel, GIOCondition condition, gpointer user_data) * { @@ -283,7 +283,7 @@ typedef int (*PolKitGrantAddChildWatch) (PolKitGrant *polkit_grant, * out: * return id; * } - * </programlisting> + * @endcode * * Returns: 0 if the watch couldn't be set up; otherwise an unique * identifier for the watch. @@ -303,13 +303,13 @@ typedef int (*PolKitGrantAddIOWatch) (PolKitGrant *polkit_grant, * * For glib mainloop, the function will typically look like this: * - * <programlisting> + * @code * static void * remove_watch (PolKitGrant *polkit_auth, int watch_id) * { * g_source_remove (watch_id); * } - * </programlisting> + * @endcode * **/ typedef void (*PolKitGrantRemoveWatch) (PolKitGrant *polkit_grant, diff --git a/polkit/polkit-context.h b/polkit/polkit-context.h index 3e4fe29..b155c5a 100644 --- a/polkit/polkit-context.h +++ b/polkit/polkit-context.h @@ -79,7 +79,7 @@ typedef void (*PolKitContextConfigChangedCB) (PolKitContext *pk_context, * * For glib mainloop, the function will typically look like this: * - * <programlisting> + * @code * static gboolean * io_watch_have_data (GIOChannel *channel, GIOCondition condition, gpointer user_data) * { @@ -107,7 +107,7 @@ typedef void (*PolKitContextConfigChangedCB) (PolKitContext *pk_context, * out: * return id; * } - * </programlisting> + * @endcode * * Returns: 0 if the watch couldn't be set up; otherwise an unique * identifier for the watch. @@ -125,13 +125,13 @@ typedef int (*PolKitContextAddIOWatch) (PolKitContext *pk_context, int fd); * * For the glib mainloop, the function will typically look like this: * - * <programlisting> + * @code * static void * io_remove_watch (PolKitContext *pk_context, int watch_id) * { * g_source_remove (watch_id); * } - * </programlisting> + * @endcode * **/ typedef void (*PolKitContextRemoveIOWatch) (PolKitContext *pk_context, int watch_id); diff --git a/polkit-grant/polkit-grant.c b/polkit-grant/polkit-grant.c index 39385eb..2bf4172 100644 --- a/polkit-grant/polkit-grant.c +++ b/polkit-grant/polkit-grant.c @@ -82,7 +82,6 @@ struct PolKitGrant /** * polkit_grant_new: - * @void: * * Creates a #PolKitGrant object. * diff --git a/doc/api/polkit/polkit-docs.xml b/doc/api/polkit/polkit-docs.xml index 8358039..6ab223f 100644 --- a/doc/api/polkit/polkit-docs.xml +++ b/doc/api/polkit/polkit-docs.xml @@ -76,7 +76,6 @@ <xi:include href="xml/polkit-seat.xml"/> <xi:include href="xml/polkit-session.xml"/> <xi:include href="xml/polkit-caller.xml"/> - <xi:include href="xml/polkit-module.xml"/> </reference> <index> ++++++ polkit-fix-compilerWarning.diff ++++++ diff --git a/tools/polkit-grant.c b/tools/polkit-grant.c index b83c7d3..279b301 100644 --- a/tools/polkit-grant.c +++ b/tools/polkit-grant.c @@ -219,7 +219,7 @@ conversation_override_grant_type (PolKitGrant *polkit_grant, PolKitResult auth_t } static void -conversation_done (PolKitGrant *polkit_grant, polkit_bool_t gained_privilege, void *user_data) +conversation_done (PolKitGrant *polkit_grant, polkit_bool_t gained_privilege, polkit_bool_t invalid_data , void *user_data) { UserData *ud = user_data; ud->gained_privilege = gained_privilege; ++++++ polkit-fix-struct_naming.diff ++++++ diff --git a/polkit/polkit-action.c b/polkit/polkit-action.c index d9ad78a..455f22e 100644 --- a/polkit/polkit-action.c +++ b/polkit/polkit-action.c @@ -49,11 +49,11 @@ **/ /** - * PolKitAction: + * PolKitAction_s: * * Objects of this class are used to record information about an action. **/ -struct PolKitAction +struct PolKitAction_s { int refcount; char *id; diff --git a/polkit/polkit-action.h b/polkit/polkit-action.h index af89f81..35e628b 100644 --- a/polkit/polkit-action.h +++ b/polkit/polkit-action.h @@ -32,8 +32,8 @@ #include <polkit/polkit-types.h> -struct PolKitAction; -typedef struct PolKitAction PolKitAction; +struct PolKitAction_s; +typedef struct PolKitAction_s PolKitAction; PolKitAction *polkit_action_new (void); PolKitAction *polkit_action_ref (PolKitAction *action); diff --git a/polkit/polkit-caller.c b/polkit/polkit-caller.c index b690445..a1bf519 100644 --- a/polkit/polkit-caller.c +++ b/polkit/polkit-caller.c @@ -49,12 +49,12 @@ #include "polkit-utils.h" /** - * PolKitCaller: + * PolKitCaller_s: * * Objects of this class are used to record information about a caller * on the system bus. **/ -struct PolKitCaller +struct PolKitCaller_s { int refcount; char *dbus_name; diff --git a/polkit/polkit-caller.h b/polkit/polkit-caller.h index 86643d9..f2a654e 100644 --- a/polkit/polkit-caller.h +++ b/polkit/polkit-caller.h @@ -34,8 +34,8 @@ #include <polkit/polkit-session.h> #include <sys/types.h> -struct PolKitCaller; -typedef struct PolKitCaller PolKitCaller; +struct PolKitCaller_s; +typedef struct PolKitCaller_s PolKitCaller; PolKitCaller *polkit_caller_new (void); PolKitCaller *polkit_caller_ref (PolKitCaller *caller); diff --git a/polkit/polkit-config.c b/polkit/polkit-config.c index d0de655..a747756 100644 --- a/polkit/polkit-config.c +++ b/polkit/polkit-config.c @@ -63,11 +63,11 @@ struct ConfigNode; typedef struct ConfigNode ConfigNode; /** - * PolKitConfig: + * PolKitConfig_s: * * This class represents the system-wide configuration file for PolicyKit. **/ -struct PolKitConfig +struct PolKitConfig_s { int refcount; ConfigNode *top_config_node; diff --git a/polkit/polkit-config.h b/polkit/polkit-config.h index 24f5658..f575428 100644 --- a/polkit/polkit-config.h +++ b/polkit/polkit-config.h @@ -38,8 +38,8 @@ #include <polkit/polkit-session.h> #include <polkit/polkit-caller.h> -struct PolKitConfig; -typedef struct PolKitConfig PolKitConfig; +struct PolKitConfig_s; +typedef struct PolKitConfig_s PolKitConfig; PolKitConfig *polkit_config_new (PolKitError **error); PolKitConfig *polkit_config_ref (PolKitConfig *pk_config); diff --git a/polkit/polkit-context.c b/polkit/polkit-context.c index d8f2ed0..2a69375 100644 --- a/polkit/polkit-context.c +++ b/polkit/polkit-context.c @@ -76,11 +76,11 @@ **/ /** - * PolKitContext: + * PolKitContext_s: * * Context object for users of PolicyKit. **/ -struct PolKitContext +struct PolKitContext_s { int refcount; diff --git a/polkit/polkit-context.h b/polkit/polkit-context.h index 3e4fe29..3e8dd13 100644 --- a/polkit/polkit-context.h +++ b/polkit/polkit-context.h @@ -40,8 +40,8 @@ #include <polkit/polkit-caller.h> #include <polkit/polkit-policy-cache.h> -struct PolKitContext; -typedef struct PolKitContext PolKitContext; +struct PolKitContext_s; +typedef struct PolKitContext_s PolKitContext; /** * PolKitContextConfigChangedCB: diff --git a/polkit/polkit-error.c b/polkit/polkit-error.c index 0d20c69..efbda16 100644 --- a/polkit/polkit-error.c +++ b/polkit/polkit-error.c @@ -50,11 +50,11 @@ #include "polkit-debug.h" /** - * PolKitError: + * PolKitError_s: * * Objects of this class are used for error reporting. **/ -struct PolKitError +struct PolKitError_s { polkit_bool_t is_static; PolKitErrorCode error_code; diff --git a/polkit/polkit-error.h b/polkit/polkit-error.h index ec0f19a..217684a 100644 --- a/polkit/polkit-error.h +++ b/polkit/polkit-error.h @@ -43,8 +43,8 @@ typedef enum POLKIT_ERROR_POLICY_FILE_INVALID } PolKitErrorCode; -struct PolKitError; -typedef struct PolKitError PolKitError; +struct PolKitError_s; +typedef struct PolKitError_s PolKitError; PolKitErrorCode polkit_error_get_error_code (PolKitError *error); const char *polkit_error_get_error_message (PolKitError *error); diff --git a/polkit/polkit-policy-cache.c b/polkit/polkit-policy-cache.c index 461583d..3b49198 100644 --- a/polkit/polkit-policy-cache.c +++ b/polkit/polkit-policy-cache.c @@ -50,12 +50,12 @@ **/ /** - * PolKitPolicyCache: + * PolKitPolicyCache_s: * * Instances of this class are used to hold all policy objects * (stemming from policy files) and provide look-up functions. **/ -struct PolKitPolicyCache +struct PolKitPolicyCache_s { int refcount; diff --git a/polkit/polkit-policy-cache.h b/polkit/polkit-policy-cache.h index c7d89c5..59a78c2 100644 --- a/polkit/polkit-policy-cache.h +++ b/polkit/polkit-policy-cache.h @@ -34,8 +34,8 @@ #include <polkit/polkit-action.h> #include <polkit/polkit-policy-file-entry.h> -struct PolKitPolicyCache; -typedef struct PolKitPolicyCache PolKitPolicyCache; +struct PolKitPolicyCache_s; +typedef struct PolKitPolicyCache_s PolKitPolicyCache; /** * PolKitPolicyCacheForeachFunc: diff --git a/polkit/polkit-policy-default.c b/polkit/polkit-policy-default.c index f2e22fa..61a4084 100644 --- a/polkit/polkit-policy-default.c +++ b/polkit/polkit-policy-default.c @@ -49,12 +49,12 @@ **/ /** - * PolKitPolicyDefault: + * PolKitPolicyDefault_s: * * Objects of this class are used to record information about a * default policy for an action. **/ -struct PolKitPolicyDefault +struct PolKitPolicyDefault_s { int refcount; PolKitResult default_inactive; diff --git a/polkit/polkit-policy-default.h b/polkit/polkit-policy-default.h index 2a6b48a..a00188a 100644 --- a/polkit/polkit-policy-default.h +++ b/polkit/polkit-policy-default.h @@ -36,8 +36,8 @@ #include <polkit/polkit-caller.h> #include <polkit/polkit-error.h> -struct PolKitPolicyDefault; -typedef struct PolKitPolicyDefault PolKitPolicyDefault; +struct PolKitPolicyDefault_s; +typedef struct PolKitPolicyDefault_s PolKitPolicyDefault; PolKitPolicyDefault *polkit_policy_default_ref (PolKitPolicyDefault *policy_default); void polkit_policy_default_unref (PolKitPolicyDefault *policy_default); diff --git a/polkit/polkit-policy-file-entry.c b/polkit/polkit-policy-file-entry.c index ec26291..80284c7 100644 --- a/polkit/polkit-policy-file-entry.c +++ b/polkit/polkit-policy-file-entry.c @@ -50,12 +50,12 @@ **/ /** - * PolKitPolicyFileEntry: + * PolKitPolicyFileEntry_s: * * Objects of this class are used to record information about a * policy. **/ -struct PolKitPolicyFileEntry +struct PolKitPolicyFileEntry_s { int refcount; char *action; diff --git a/polkit/polkit-policy-file-entry.h b/polkit/polkit-policy-file-entry.h index 7eac213..37f1863 100644 --- a/polkit/polkit-policy-file-entry.h +++ b/polkit/polkit-policy-file-entry.h @@ -33,8 +33,8 @@ #include <polkit/polkit-result.h> #include <polkit/polkit-policy-default.h> -struct PolKitPolicyFileEntry; -typedef struct PolKitPolicyFileEntry PolKitPolicyFileEntry; +struct PolKitPolicyFileEntry_s; +typedef struct PolKitPolicyFileEntry_s PolKitPolicyFileEntry; PolKitPolicyFileEntry *polkit_policy_file_entry_ref (PolKitPolicyFileEntry *policy_file_entry); void polkit_policy_file_entry_unref (PolKitPolicyFileEntry *policy_file_entry); diff --git a/polkit/polkit-policy-file.c b/polkit/polkit-policy-file.c index 1efdbee..8c8600e 100644 --- a/polkit/polkit-policy-file.c +++ b/polkit/polkit-policy-file.c @@ -53,12 +53,12 @@ **/ /** - * PolKitPolicyFile: + * PolKitPolicyFile_s: * * Objects of this class are used to record information about a * policy file. **/ -struct PolKitPolicyFile +struct PolKitPolicyFile_s { int refcount; GSList *entries; diff --git a/polkit/polkit-policy-file.h b/polkit/polkit-policy-file.h index bcb28f9..b16e6da 100644 --- a/polkit/polkit-policy-file.h +++ b/polkit/polkit-policy-file.h @@ -33,8 +33,8 @@ #include <polkit/polkit-error.h> #include <polkit/polkit-policy-file-entry.h> -struct PolKitPolicyFile; -typedef struct PolKitPolicyFile PolKitPolicyFile; +struct PolKitPolicyFile_s; +typedef struct PolKitPolicyFile_s PolKitPolicyFile; /** * PolKitPolicyFileEntryForeachFunc: diff --git a/polkit/polkit-seat.c b/polkit/polkit-seat.c index 507a1d4..e3d0793 100644 --- a/polkit/polkit-seat.c +++ b/polkit/polkit-seat.c @@ -49,12 +49,12 @@ **/ /** - * PolKitSeat: + * PolKitSeat_s: * * Objects of this class are used to record information about a * seat. **/ -struct PolKitSeat +struct PolKitSeat_s { int refcount; char *ck_objref; diff --git a/polkit/polkit-seat.h b/polkit/polkit-seat.h index 5a01714..2a959db 100644 --- a/polkit/polkit-seat.h +++ b/polkit/polkit-seat.h @@ -32,8 +32,8 @@ #include <polkit/polkit-types.h> -struct PolKitSeat; -typedef struct PolKitSeat PolKitSeat; +struct PolKitSeat_s; +typedef struct PolKitSeat_s PolKitSeat; PolKitSeat *polkit_seat_new (void); PolKitSeat *polkit_seat_ref (PolKitSeat *seat); diff --git a/polkit/polkit-session.c b/polkit/polkit-session.c index 4a1d118..32a2e05 100644 --- a/polkit/polkit-session.c +++ b/polkit/polkit-session.c @@ -49,12 +49,12 @@ **/ /** - * PolKitSession: + * PolKitSession_s: * * Objects of this class are used to record information about a * session. **/ -struct PolKitSession +struct PolKitSession_s { int refcount; uid_t uid; diff --git a/polkit/polkit-session.h b/polkit/polkit-session.h index 3fb4ca0..73647a8 100644 --- a/polkit/polkit-session.h +++ b/polkit/polkit-session.h @@ -35,8 +35,8 @@ #include <sys/types.h> -struct PolKitSession; -typedef struct PolKitSession PolKitSession; +struct PolKitSession_s; +typedef struct PolKitSession_s PolKitSession; PolKitSession *polkit_session_new (void); PolKitSession *polkit_session_ref (PolKitSession *session); diff --git a/polkit-grant/polkit-grant.c b/polkit-grant/polkit-grant.c index 39385eb..c6bb631 100644 --- a/polkit-grant/polkit-grant.c +++ b/polkit-grant/polkit-grant.c @@ -47,12 +47,12 @@ **/ /** - * PolKitGrant: + * PolKitGrant_s: * * Objects of this class are used to obtain privileges for a user that * is able to successfully authenticate. **/ -struct PolKitGrant +struct PolKitGrant_s { int refcount; diff --git a/polkit-grant/polkit-grant.h b/polkit-grant/polkit-grant.h index 5211b6f..d572004 100644 --- a/polkit-grant/polkit-grant.h +++ b/polkit-grant/polkit-grant.h @@ -28,8 +28,8 @@ #include <polkit/polkit.h> -struct PolKitGrant; -typedef struct PolKitGrant PolKitGrant; +struct PolKitGrant_s; +typedef struct PolKitGrant_s PolKitGrant; /** * PolKitGrantType: ++++++ polkit-fix-uid_t-compilerwarning.diff ++++++ diff --git a/polkit-dbus/polkit-dbus.c b/polkit-dbus/polkit-dbus.c index 4c1f34b..7162e36 100644 --- a/polkit-dbus/polkit-dbus.c +++ b/polkit-dbus/polkit-dbus.c @@ -389,7 +389,7 @@ polkit_caller_new_from_dbus_name (DBusConnection *con, const char *dbus_name, DB session = NULL; uid = dbus_bus_get_unix_user (con, dbus_name, error); - if (uid == ((unsigned long) -1) || dbus_error_is_set (error)) { + if (dbus_error_is_set (error)) { g_warning ("Could not get uid for connection: %s %s", error->name, error->message); goto out; } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de