SECURITY wrt shmget()
request from brad@; found by David Fries <dfries@mail.win.org>
This commit is contained in:
parent
b312a3e908
commit
a6cb679b16
@ -1,9 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.70 2002/05/13 23:31:24 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.71 2002/06/14 17:18:06 todd Exp $
|
||||
|
||||
COMMENT= "GNU Image Manipulation Program"
|
||||
|
||||
VERSION= 1.2.2
|
||||
DISTNAME= gimp-${VERSION}
|
||||
PKGNAME= ${DISTNAME}p1
|
||||
CATEGORIES= graphics
|
||||
NEED_VERSION= 1.486
|
||||
V= gimp/v1.2/${VERSION}
|
||||
|
12
graphics/gimp/patches/patch-app_plug_in_c
Normal file
12
graphics/gimp/patches/patch-app_plug_in_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-app_plug_in_c,v 1.1 2002/06/14 17:18:06 todd Exp $
|
||||
--- app/plug_in.c.orig Wed Jun 12 09:14:05 2002
|
||||
+++ app/plug_in.c Wed Jun 12 09:14:19 2002
|
||||
@@ -224,7 +224,7 @@ plug_in_init_shm (void)
|
||||
*/
|
||||
|
||||
#ifdef HAVE_SHM_H
|
||||
- shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777);
|
||||
+ shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0600);
|
||||
|
||||
if (shm_ID == -1)
|
||||
g_message ("shmget() failed: Disabling shared memory tile transport.");
|
@ -1,7 +1,16 @@
|
||||
$OpenBSD: patch-configure,v 1.4 2001/08/09 01:43:16 brad Exp $
|
||||
--- configure.orig Thu Jul 26 14:13:35 2001
|
||||
+++ configure Wed Aug 8 14:29:47 2001
|
||||
@@ -7116,9 +7116,9 @@
|
||||
$OpenBSD: patch-configure,v 1.5 2002/06/14 17:18:06 todd Exp $
|
||||
--- configure.orig Thu Jul 26 13:13:35 2001
|
||||
+++ configure Wed Jun 12 09:14:58 2002
|
||||
@@ -5297,7 +5297,7 @@ else
|
||||
{
|
||||
int id;
|
||||
char *shmaddr;
|
||||
- id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0777);
|
||||
+ id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0600);
|
||||
if (id == -1)
|
||||
exit (2);
|
||||
shmaddr = shmat (id, 0, 0);
|
||||
@@ -7116,9 +7116,9 @@ fi
|
||||
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user