pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44458: www/ap2-chroot shouldn't be installed with apache-2.2.10+



>Number:         44458
>Category:       pkg
>Synopsis:       www/ap2-chroot shouldn't be installed with apache-2.2.10+
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 25 13:50:00 +0000 2011
>Originator:     Joel Carnat
>Release:        NetBSD 5.1_STABLE/i386
>Organization:
-
>Environment:
NetBSD guarana.tumfatig.net 5.1_STABLE NetBSD 5.1_STABLE (GENERIC) #0: Sat Jan 
22 12:06:59 UTC 2011  
builds%b8.netbsd.org@localhost:/home/builds/ab/netbsd-5/i386/201101221500Z-obj/home/builds/ab/netbsd-5/src/sys/arch/i386/compile/GENERIC
 i386
>Description:
Since version 2.2.10, Apache provides a ChrootDir directive 
(http://httpd.apache.org/docs/2.2/mod/mpm_common.html#chrootdir).

The "ChrootDir" is used by both www/ap2-chroot and www/apache22.
If you enable it httpd.conf, Apache will "double-chroot" and won't be able to 
serve your files.

Regards.
>How-To-Repeat:
Install www/apache22
Install www/ap2-chroot
Configure 'ChrootDir "/somepath"' in /usr/pkg/etc/httpd/httpd.conf

Start Apache and see that it chroots in the chroot...
>Fix:
Don't install www/ap2-chroot with www/apache22 since v2.2.10.

The www.ap2-chroot/Makefile sets "PKG_APACHE_ACCEPTED=apache2 apache22".
It should be restricted to www/apache22<2.2.10



Home | Main Index | Thread Index | Old Index