ports/128786: newest www/varnish doesn't work by default (mlock not permitted)
Lapo Luchini
lapo at lapo.it
Tue Nov 11 13:20:02 UTC 2008
>Number: 128786
>Category: ports
>Synopsis: newest www/varnish doesn't work by default (mlock not permitted)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Nov 11 13:20:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Lapo Luchini
>Release: FreeBSD 6.3-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD motoko.lapo.it 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #8: Thu Dec 13 09:33:49 CET 2007 root at motoko.lapo.it:/usr/obj/usr/src/sys/MOTOKO amd64
>Description:
It seems to me that varnish drops root priviledges before attempting an mlock(2), thus failing it.
>How-To-Repeat:
# cd /usr/ports/www/varnish
# make install clean
# echo 'varnishd_storage="file,data,100M"' >>/etc/rc.conf
# /usr/local/etc/rc.d/varnishd forcestart
Starting varnishd.
storage_file: filename: /usr/local/varnish/$HOST/data size 100 MB.
Using old SHMFILE
Notice: locking SHMFILE in core failed: Operation not permitted
>Fix:
Work-around is:
# echo 'varnishd_user="root"' >>/etc/rc.conf
Host with the problem is a:
FreeBSD $HOST 7.0-STABLE FreeBSD 7.0-STABLE #2: Sat May 31 09:57:05 CEST 2008 root@$HOST:/usr/obj/usr/src/sys/GENERIC amd64
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list