openbsd-ports/devel/libgtop/patches/patch-sysdeps_freebsd_sem_limits_c
todd 8d82e7ea1c Security update for libgtop to libgtop-1.0.13:
The Laboratory intexxia found a remote exploitable format string
vulnerability in libgtop_daemon which could cause privilege escalation
on a remote system.

The libgtop_daemon is not running by default if you run GNOME.

New since last version:

- security fix
- update for parallel install with libgtop-2.0
+ Only install shared libraries on shared arches.

From maintainer (Nils Nordman <nino@nforced.com>).
2001-11-27 23:07:01 +00:00

21 lines
849 B
Plaintext

$OpenBSD: patch-sysdeps_freebsd_sem_limits_c,v 1.2 2001/11/27 23:07:02 todd Exp $
--- sysdeps/freebsd/sem_limits.c.orig Tue Feb 27 14:38:03 2001
+++ sysdeps/freebsd/sem_limits.c Mon Aug 27 17:07:24 2001
@@ -56,7 +56,7 @@ glibtop_get_sem_limits_p (glibtop *serve
#include <sys/sem.h>
static unsigned long _glibtop_sysdeps_sem_limits =
-(1L << GLIBTOP_IPC_SEMMAP) + (1L << GLIBTOP_IPC_SEMMNI) +
+(1L << GLIBTOP_IPC_SEMMNI) +
(1L << GLIBTOP_IPC_SEMMNS) + (1L << GLIBTOP_IPC_SEMMNU) +
(1L << GLIBTOP_IPC_SEMMSL) + (1L << GLIBTOP_IPC_SEMOPM) +
(1L << GLIBTOP_IPC_SEMUME) + (1L << GLIBTOP_IPC_SEMUSZ) +
@@ -104,7 +104,6 @@ glibtop_get_sem_limits_p (glibtop *serve
if (server->sysdeps.sem_limits == 0)
return;
- buf->semmap = _seminfo.semmap;
buf->semmni = _seminfo.semmni;
buf->semmns = _seminfo.semmns;
buf->semmnu = _seminfo.semmnu;