Skip site navigation (1)Skip section navigation (2)
Date:      11 Nov 2008 13:16:06 -0000
From:      Lapo Luchini <lapo@lapo.it>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Lapo Luchini <lapo@lapo.it>, des@FreeBSD.org
Subject:   ports/128786: newest www/varnish doesn't work by default (mlock not permitted)
Message-ID:  <20081111131606.94884.qmail@mail.lapo.it>
Resent-Message-ID: <200811111320.mABDK1nR067611@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081111131606.94884.qmail>