From owner-freebsd-questions@freebsd.org Sat Apr 1 16:24:20 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B097FD29A18 for ; Sat, 1 Apr 2017 16:24:20 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-it0-x232.google.com (mail-it0-x232.google.com [IPv6:2607:f8b0:4001:c0b::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 783F18F5 for ; Sat, 1 Apr 2017 16:24:20 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-it0-x232.google.com with SMTP id e75so27936908itd.1 for ; Sat, 01 Apr 2017 09:24:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-transfer-encoding; bh=3II0fzOEwQLUeFvbkGIif/Xu78PujqmHaBp7aEDrjzE=; b=JhwzezzXSBVyRcNHauOJ75tXefi1mAUVmFiemh14YZ7Ikc/XFK5sqQe/kPh0m2QI3J 5SQwgwa1grrWCzgcxQUhVfw1PUodp6aVZhBTx3zmtnLJVCftk0e4OGCHE4CYFOZjvP61 9qcwpnj+O2NIiyGUfQcMsNhXDbrBLyd2IEVQi5DahOhBNrfW6D+KhRatZ4Fh3TvM3cLo uRGPL8RfiLd5Ceuxi2X3DEw0OD9DhLJL/ovtBZ+GX/by+wzpogcT57OULBvwaKF0mNI1 vq0aNn6fSDa2AsXcWOhPhHSUFnMeakd5JF+QKKl7z1wB3pCU7aqPR0BgxSooq33pwavW 6xkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-transfer-encoding; bh=3II0fzOEwQLUeFvbkGIif/Xu78PujqmHaBp7aEDrjzE=; b=lkyBU61YBpM3Q2NXLyEhEd9G+rLDp0En3qFm2V1IY5jClLAh1wu83VetMjRAcgNq3x yND5TE210xxulJw1zW0Db7MqX/FPFDAjOWwgFQlZBHQTrdXvJDtHrV67+Gj+6qQdFOFW CuQIEAtEkPrp8CT7P3ZNgk3fHR8CKAerTnNBbPRnc1qPfqYJL1TjEtFQeO8d8gUpKwCE T0DnihRvRF+wcrel3x1VMKZvjFfBjuIBB4oKbvJ1449quzjADkFswAZ62RIPQSMWSbMf chPJk5FgGExiTjQ7B32F1VO5Ajh7HdDSdoWfnzxMM24ZADFFU1/bvpGdMDg/xmJ/y4DO n6qg== X-Gm-Message-State: AFeK/H0UaB4GF/Wrp+sZ2uu8dMtSJX3SdpeuDSr1jlJOscArwaHsMOQqE1npNhuHfK4geg== X-Received: by 10.36.16.202 with SMTP id 193mr3384521ity.52.1491063859359; Sat, 01 Apr 2017 09:24:19 -0700 (PDT) Received: from [10.0.10.3] (cpe-74-141-88-57.neo.res.rr.com. [74.141.88.57]) by smtp.googlemail.com with ESMTPSA id l129sm5709056ite.1.2017.04.01.09.24.18 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 01 Apr 2017 09:24:18 -0700 (PDT) Message-ID: <58DFD440.50000@gmail.com> Date: Sat, 01 Apr 2017 12:24:32 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: FreeBSD questions Subject: Re: X11 and ezjails References: <7f49f81e25d0eb05aad1af66df49c525.squirrel@webmail.harte-lyne.ca> <20170401091533.GA2495@esprimo.local> In-Reply-To: <20170401091533.GA2495@esprimo.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2017 16:24:20 -0000 Christoph Brinkhaus wrote: > On Fri, Mar 31, 2017 at 01:39:29PM -0400, James B. Byrne via freebsd-questions wrote: > > Dear James, > >> FreeBSD-11.0 >> >> I would like to run gvim in an X11 window over ssh to a jailed >> instance created with ezjail. I have set sshd_config in the jail to >> allow X11Forwarding and I am connecting with 'ssh -Y jail.domain.tld' >> >> However, when I log into the jail and run gvim then I see this: >> >> # gvim >> X11 connection rejected because of wrong authentication. >> E233: cannot open display >> Press ENTER or type command to continue >> >> E852: The child process failed to start the GUI >> X11 connection rejected because of wrong authentication. >> >> >> I have run into this before and have attempted to apply all of the >> previous remedies but nothing seems to work. Is there anything about >> jails themselves that would prevent X11 forwarding? >> >> Has anyone accomplished what I am trying to do? If so then how was it >> done? > > Please have a look at > https://forums.freebsd.org/threads/53362/ > It works with ezjail as well. > The bare fact is you can not run an x11 gui in a jail. The x11 gui needs access to the kernel which is blocked by jail(8) as a security violation. iocage uses a un-official patch to allow x11 gui desktop to run in a jail, but doing so robs the jail of all its built in security. So why would any one do that? This is not an ezjail problem, but an mis-understanding of how jail(8) and x11 gui works.