openpkg/make.patch

Mon, 20 Apr 2009 19:22:00 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Mon, 20 Apr 2009 19:22:00 +0200
changeset 178
0ba300bdf30a
child 250
bda4f5eec616
permissions
-rw-r--r--

Change unfortunate but partly useful overreaching security tradeoff.
The principle of allocating each running process an individual system
user and group can have security benefits, however maintining a plethora
of users, groups, processes, file modes, file permissions, and even
nonportable file ACLs on a host serving from a hundred processes has
some security disadvantages. This tradeoff is even worse for systems
like OpenPKG which benefit from administration transparency through the
use of minimal system intrusion and only three usage privilege levels.

michael@13 1 Index: glob/glob.c
michael@13 2 --- glob/glob.c.orig 2006-03-10 03:20:45 +0100
michael@13 3 +++ glob/glob.c 2006-04-01 19:09:18 +0200
michael@13 4 @@ -216,13 +216,13 @@
michael@13 5 # ifdef HAVE_ALLOCA_H
michael@13 6 # include <alloca.h>
michael@13 7 # else /* Not HAVE_ALLOCA_H. */
michael@13 8 -# ifndef _AIX
michael@13 9 +# if !defined (_AIX) && !defined (__FreeBSD__)
michael@13 10 # ifdef WINDOWS32
michael@13 11 # include <malloc.h>
michael@13 12 # else
michael@13 13 extern char *alloca ();
michael@13 14 # endif /* WINDOWS32 */
michael@13 15 -# endif /* Not _AIX. */
michael@13 16 +# endif /* Not _AIX && not __FreeBSD__. */
michael@13 17 # endif /* sparc or HAVE_ALLOCA_H. */
michael@13 18 # endif /* GCC. */
michael@13 19
michael@13 20 Index: make.h
michael@13 21 --- make.h.orig 2006-02-16 00:54:43 +0100
michael@13 22 +++ make.h 2006-04-01 19:09:18 +0200
michael@13 23 @@ -31,7 +31,7 @@
michael@13 24 # ifdef _AIX
michael@13 25 #pragma alloca
michael@13 26 # else
michael@13 27 -# ifndef alloca /* predefined by HP cc +Olibcalls */
michael@13 28 +# if !defined (alloca) && !defined (__FreeBSD__) /* predefined by HP cc +Olibcalls, part of stdlib.h on FreeBSD */
michael@13 29 char *alloca ();
michael@13 30 # endif
michael@13 31 # endif

mercurial