From owner-freebsd-hackers@FreeBSD.ORG Fri May 20 06:29:28 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 190CE106564A; Fri, 20 May 2011 06:29:27 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 683A18FC12; Fri, 20 May 2011 06:29:27 +0000 (UTC) Received: from outgoing.leidinger.net (p5B153850.dip.t-dialin.net [91.21.56.80]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 33AA1844015; Fri, 20 May 2011 08:29:10 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [IPv6:fd73:10c7:2053:1::3:102]) by outgoing.leidinger.net (Postfix) with ESMTP id 702CE27BB; Fri, 20 May 2011 08:29:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1305872947; bh=qbZoqp1gkrJWaU+VWyoRPEDeCX+iCZ5WR0JeYKJ4ahc=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=1fO11qwgJJpHkC06J64dN88WiAiufG5A5Cl2ADDY3AfDZfgooJwplg70f9yd7eTlC U33HZLlhPMhZebF2eg0UGRxr4VyJWSRbunYjyoF2IlqNa95b/4yt8VJenkeJC3825g ludSk40iI8dj1lF0FKJPD2CJa/KYig0xn/7c1W7pec9mP4kU/B5lur051yXW68JPXk X+wGHfak25gD5+LVI+YUWWj4MmXjrvUJUfxH6NoPJA4qjxTLo7IicXKNbdKnwRzv5F c7Gcar4mXPZ8aO6i/pnnC3u1c9dzU2TSRLEDfhXRUSOcgMdodCimtUc31gL6p6vwK4 e9ySdp6Xx2XdQ== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.14.4/Submit) id p4K6T5VQ066412; Fri, 20 May 2011 08:29:05 +0200 (CEST) (envelope-from Alexander@Leidinger.net) X-Authentication-Warning: webmail.leidinger.net: www set sender to Alexander@Leidinger.net using -f Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Fri, 20 May 2011 08:29:05 +0200 Message-ID: <20110520082905.1914751s9bwb2w4x@webmail.leidinger.net> Date: Fri, 20 May 2011 08:29:05 +0200 From: Alexander Leidinger To: Doug Ambrisko References: <201105192138.p4JLceuH053381@ambrisko.com> In-Reply-To: <201105192138.p4JLceuH053381@ambrisko.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.6) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 33AA1844015.AE109 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=0.5, required 6, autolearn=disabled, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10, J_CHICKENPOX_55 0.60) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1306477754.54569@yagWpQhFEP7PatIGf9L2YQ X-EBL-Spam-Status: No X-Mailman-Approved-At: Fri, 20 May 2011 11:02:32 +0000 Cc: "freebsd-hackers@freebsd.org" , Pawel Jakub Dawidek , Arnaud Lacombe Subject: Re: NFS mount inside jail fails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2011 06:29:28 -0000 Quoting Doug Ambrisko (from Thu, 19 May 2011 14:38:40 -0700 (PDT)): > Alexander Leidinger writes: > | On Thu, 19 May 2011 10:24:59 -0700 (PDT) Doug Ambrisko > | wrote: > | > | > doesn't have access to it anymore either. Running an X server in a > | > vimage has some issues. Most are pretty easy to over-come. > | > | Are you using my patch > | (http://www.leidinger.net/FreeBSD/current-patches/0_jail.diff) + a > | custom devfs.rules to get the 2D part (the last time I tried the DRI > | part of my patch, it paniced the machine) of the X server working in a > | jail, or did you come up with something yourself? If it is the later, I > | would be interested how you did it. > > Nope, didn't know about it when I played with it. I should try it. > I added > case PRIV_IO: > return (0); > > to kern_jail.c to get X to work. This was with the Intel graphics. > The main problem I have now is on resume the X server dies and restarts. > I use xdm. Without jail with vimage then it works okay. I use it without vimage in a jail. This is with a radeon card (corresponding kernel module loaded at boot to get 2D acceleration, as the X server obviously can not load modules in a jail). > My laptop can use either Intel or ATI graphics. I just switched it to > ATI to see what happens. I should try some more tests. It seems > my BIOS likes to reset this setting and enable both :-( > > I don't seem to have panics. This is with a month or so old -current. You do not allow access to the dri device, so I do not expect a panic. If you give access to the dri device (which can be enabled separately in my patch), I would not be surprised to see a panic (the last time I tried it is a year or two ago, I didn't take the time to investigate why it panics). Bye, Alexander. -- FORTUNE'S RULES TO LIVE BY: #2 Never goose a wolverine. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137