From owner-freebsd-hackers@freebsd.org Tue Sep 5 13:15:55 2017 Return-Path: Delivered-To: freebsd-hackers@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 1DA6EE08BDE for ; Tue, 5 Sep 2017 13:15:55 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:375::1:5]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A7C106692F for ; Tue, 5 Sep 2017 13:15:54 +0000 (UTC) (envelope-from Alexander@leidinger.net) Date: Tue, 05 Sep 2017 15:15:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1504617352; bh=6ON49HgMVjasPWM8K+56Ftuz7EsvE7TBRQcvpb5GqXY=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=O+iXNYVoAyRTHbJkpyZY8DRNzlXqvnl1j5tG/ZLLHCRfvFCgEDNegL4oBEO08hDG7 XfXWFWqLffFNWXzwtvslE/imeGOiwxu851R7lyjpA7cBpu04N/b57p8e3C8vkksfDy nE1hk6F8vWHk702UAfbOMqBoGECmCgNDJQ8BygNLe4yoDu0P7P3B9nPbQ123ZheLP6 p4tsj6u0yv1gkrRLmZd5/VKaXBDPj99A75LjYIzAnwjWTu7Wd5/BliWmJ/Bb4zTWFs 45tf0QMs1FS2/3UXGKROOVQrTyl1K+uA/80LMnI8fF6VKq5f8albFD2uFqutvUyuxV ebsw+OhG8IQiA== Message-ID: <20170905151537.Horde.10cHNOX1OVri7mGaUcDeX1l@webmail.leidinger.net> From: Alexander Leidinger To: Giulio Ferro Cc: freebsd-hackers@freebsd.org Subject: Re: devd in jail References: <20170810225439.Horde.1s8Qi_dlNtxgEigsNKbdrer@webmail.leidinger.net> <4a1a99a5-35ea-19c9-7ac8-77875ac6f71f@zirakzigil.org> In-Reply-To: <4a1a99a5-35ea-19c9-7ac8-77875ac6f71f@zirakzigil.org> User-Agent: Horde Application Framework 5 Content-Type: multipart/signed; boundary="=_j_T_Z2cPYedhdhN3hOXO19-"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 05 Sep 2017 13:51:18 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2017 13:15:55 -0000 This message is in MIME format and has been PGP signed. --=_j_T_Z2cPYedhdhN3hOXO19- Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Giulio Ferro (from Mon, 4 Sep 2017=20=20 08:51:10=20+0200): > On 10/08/2017 22:54, Alexander Leidinger wrote: >> >> Quoting Alan Somers (from Wed, 9 Aug 2017 >>> Unfortunately, you're not going to be able to run devd(8) in the jail. >>> /dev/devctl can be opened by only one reader at a time, and that >>> reader is always devd(8). /dev/devctl2 is actually a completely >>> different device with a totally different interface. Apologies for >>> the confusing names. But you may not need to run a totally separate >>> instance of devd. The X server is probably trying to open either >>> /var/run/devd.pipe or /var/run/devd.seqpacket.pipe. ktrace would tell >>> you which. If you can bridge those sockets into the jail, then X >>> would probably run. >> >> Apart from using an explicit config of devices instead of HAL /=20=20 >>=20devd, if this is a X server connecting to a graphics card (instead=20= =20 >>=20of just a remote accessible framebuffer), the X-in-a-jail patches=20= =20 >>=20are needed, as the X server needs access to /dev/(k)mem and /dev/io=20= =20 >>=20(and /dev/drm). >> > > Hi Alexander, > > as I said, I don't actually need to connect to any device, as this=20=20 >=20Xorg server in the jail only uses xrdp as backend. In this case you don't need my patches at all... I hope (my=20=20 understanding=20is that the X server needs this kind of access to access=20= =20 hardware).=20And to answer your question in another mail, yes, the diff=20= =20 is=20for current, not for 11.x. It's been a while since I looked last at the devd/hald <-> X11=20=20 interaction,=20but back then it was only needed to auto-detect=20=20 mouse/keyboard/...,=20so I wonder why xrdp needs it. Anyway, have a look=20= =20 to=20configure the config with static devices instead of devd/hald (see=20= =20 https://forums.freebsd.org/threads/7956/). Bye, Alexander. --=20 http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_j_T_Z2cPYedhdhN3hOXO19- Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJZrqN5AAoJEKrxQhqFIICEOf8QAIIwMkXO3f+Kx+KA2BY82DWH Be9lGNBKe+4keDmm5PAZE+OeyDvSlEsnYKhBZbjZPQNQ2Ta4N8uQRQ1xu39NODA7 0FiGhOaovijpXkdlzwlQvbLKCYJBfGK7YedkIugNUL1ZHLu0Pek6cIef/TakI3oP JoWJpKnnrYxtV7omf/7V84DjG89a9M8YAUbYhiqImDkDu2Mb74OcZwV6jP+q5GZd kDjeDItXkdyndq3GCGogGr3qqQ24+Wb0BxsXSpn9ccL7NXUC1rL1gtfwDk4JapIy 87aZN3VowQto60ARj7s3I8FRJ/Nn4Mb23GbYnnEhx1PyYaeeuxlryV+sUAkblDAy 7X7GjCGhXdGlkuPAeTSYswZ+MMbwLGFLWAf1txUCpRA2jjCPmId+Aaojndy59/JJ TQ4nWV+slLiIv4MilAxQeTX8tAHpfmYoCtDugiAkyBqPFOMUBfDDO1Cuh5Ebhyup GOmo6RqkX6yNGD6cEkJUqix+QKGUmnLhqLb8TH/djL8j6Gdwx8VyyugXSHmMWoBm 3uFSfy6T3WjeL0s4FGsl8EZGB6zFYQjDYAbvKyoH38l5rwgF/4VLeBXFX2MQT5jF ocZ84VuzIEhcyTRszEyRzjLHTVZuHNoU1v3oKmp4sn6qLSuzyIN01kU8Hz3Ob/T/ ed/dAhOLmAar5OCHu72x =rBe0 -----END PGP SIGNATURE----- --=_j_T_Z2cPYedhdhN3hOXO19---