From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 22 23:38:44 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B162216A4B3; Wed, 22 Oct 2003 23:38:44 -0700 (PDT) Received: from carbon.berkeley.netdot.net (carbon.berkeley.netdot.net [216.27.190.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E9C643F75; Wed, 22 Oct 2003 23:38:44 -0700 (PDT) (envelope-from nick@netdot.net) Received: by carbon.berkeley.netdot.net (Postfix, from userid 101) id 4174A17329; Wed, 22 Oct 2003 23:42:06 -0700 (PDT) Date: Wed, 22 Oct 2003 23:42:06 -0700 From: Nicholas Esborn To: freebsd-current@freebsd.org, freebsd-hackers@freebsd.org Message-ID: <20031023064206.GA47873@carbon.berkeley.netdot.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: Serve NFS from within a jail? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2003 06:38:44 -0000 Hello, I'm hoping to configure NFS service within a jail on a 5.1-CURRENT box. The host envjailedment isn't running any services except ssh, and the jail(8) man page leads me to believe the author thought NFS service would work from within a jail. However, neither mountd nor nfsd are happy running inside the jail: Oct 22 23:32:06 jailed mountd[1249]: can't delete exports for /: Operation not permitted Oct 22 23:32:06 jailed mountd[1249]: can't delete exports for /tmp: Operation not permitted Oct 22 23:32:06 jailed mountd[1249]: can't delete exports for /usr: Operation not permitted Oct 22 23:32:06 jailed mountd[1249]: can't delete exports for /var: Operation not permitted Oct 22 23:32:06 jailed mountd[1249]: can't delete exports for /foo: Operation not permitted Oct 22 23:32:06 jailed mountd[1249]: can't change attributes for /foo/share Oct 22 23:32:06 jailed mountd[1249]: bad exports list line /foo/share -maproot Oct 22 23:32:06 jailed nfsd[1255]: nfssvc: Operation not permitted Oct 22 23:32:06 jailed nfsd[1256]: nfssvc: Operation not permitted Oct 22 23:32:06 jailed nfsd[1257]: nfssvc: Operation not permitted Oct 22 23:32:06 jailed nfsd[1254]: nfssvc: Operation not permitted Oct 22 23:32:06 jailed nfsd[1252]: can't Add UDP socket Any suggestions? Thanks, -nick