pkgsrc/security/polkit/patches/patch-src_polkit_polkitunixprocess.c
wiz 9bc4853b12 polkit: update to 0.115.
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.

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
2018-08-16 12:30:43 +00:00

28 lines
783 B
C

$NetBSD: patch-src_polkit_polkitunixprocess.c,v 1.6 2018/08/16 12:30:43 wiz Exp $
Fix SunOS includes.
Fix pid_t type.
--- src/polkit/polkitunixprocess.c.orig 2018-06-25 13:55:45.000000000 +0000
+++ src/polkit/polkitunixprocess.c
@@ -24,6 +24,11 @@
#endif
#include <sys/types.h>
+#ifdef HAVE_SOLARIS
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <procfs.h>
+#endif
#ifdef HAVE_FREEBSD
#include <sys/param.h>
#include <sys/sysctl.h>
@@ -95,7 +100,7 @@ enum
static void subject_iface_init (PolkitSubjectIface *subject_iface);
-static guint64 get_start_time_for_pid (gint pid,
+static guint64 get_start_time_for_pid (pid_t pid,
GError **error);
#if defined(HAVE_FREEBSD) || defined(HAVE_NETBSD) || defined(HAVE_OPENBSD)