backport HURD and KfreeBSD build support

This commit is contained in:
brenosilva
2012-06-08 15:39:17 +00:00
parent c0896c3ae6
commit b62297510c
2 changed files with 12 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
08 Jun 2012 - 2.6.6 08 Jun 2012 - 2.6.6
------------------- -------------------
* Added build system support for KfreeBSD and HURD.
* In 2009, Stefan Esser published an evasion technique that relies on the use of single quotes and PHP. * In 2009, Stefan Esser published an evasion technique that relies on the use of single quotes and PHP.
The trick was treating a request parameter as a file. A patch was applied into ModSecurity 2.5.11 by Brian Rectanus. The trick was treating a request parameter as a file. A patch was applied into ModSecurity 2.5.11 by Brian Rectanus.
Ivan Ristic reported that the patch was imcomplete. We added extra checks for this evasion. Ivan Ristic reported that the patch was imcomplete. We added extra checks for this evasion.

View File

@@ -110,12 +110,20 @@ case $host in
freebsdos=true freebsdos=true
;; ;;
*-*-netbsd*) *-*-netbsd*)
echo "Checking plataform... Identified as FreeBSD" echo "Checking plataform... Identified as NetBSD"
netbsdos=true netbsdos=true
;; ;;
*-*-openbsd*) *-*-openbsd*)
echo "Checking plataform... Identified as FreeBSD" echo "Checking plataform... Identified as OpenBSD"
openbsdos=true openbsdos=true
;;
*-*-kfreebsd*)
echo "Checking plataform... Identified as kFreeBSD, treating as linux"
linuxos=true
;;
*-*-gnu*.*)
echo "Checking plataform... Identified as HURD, treating as linux"
linuxos=true
;; ;;
*) *)
echo "Unknown CANONICAL_HOST $host" echo "Unknown CANONICAL_HOST $host"