From owner-freebsd-hackers@freebsd.org Wed Sep 20 06:33:12 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 3E75BE25D58 for ; Wed, 20 Sep 2017 06:33:12 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (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 98AA3823E2 for ; Wed, 20 Sep 2017 06:33:10 +0000 (UTC) (envelope-from Alexander@leidinger.net) Date: Wed, 20 Sep 2017 08:32:20 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1505889182; bh=6b1FiSCRGUR12m0Ii4les9iTSts3guBwDqUhESfhqAk=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=J8eit8mtUQIsjTLY/ngR8jOHB8l0PPsp1OEvutd0Z5exCZTzNRfgoxzLGzsLSGKaY nDGoAr5Td5JMRHoP232VlSg3Ax5DkyuYIGuOC3t+VsbQYCI338ZHT8qHyTDP/Xpi6Z 6ff1yb/I301SssUPgXD9Xh4kPfXInypkbjhDgDHH+0Rs5wabIzBKGtWDvIFGCxm4eD V9mjJP2IqHYN0IdH8FPyPVf9SMZ7AYcEzgqBwL8Ckb4wlXtOgoN7UPKypFaD8su5lj lzavalDYXLpgka7lS6HorrvKVXv7RXwBopRE/lSgrwmykA0XL9QsabWYL1t1MgxYvP Z63HKGwt+p3tQ== Message-ID: <20170920083220.Horde.7owviieKDuNKXQBL8N0TGLf@webmail.leidinger.net> From: Alexander Leidinger To: Giulio Ferro Cc: freebsd-hackers@freebsd.org Subject: Re: devd in jail References: <7ca865ee-b613-2f0c-daf0-d828884b5e74@zirakzigil.org> <1C181EF2-B8B1-4F42-BF80-ABEA0593DD43@dsl-only.net> <20170906122556.Horde.5OdDwtii7HXPNArY77YUyBi@webmail.leidinger.net> <20170906221947.Horde.RITHvdc1wVE9v0-3nBavR0Z@webmail.leidinger.net> <20170909150335.Horde.wBLIPwBuhV3lyQlBxKud39f@webmail.leidinger.net> <27e72cfb-54cf-4af8-b569-85fff089c45f@zirakzigil.org> <20170911161253.Horde.vawLu00EtbbHOVeJRXjp7N0@webmail.leidinger.net> <3236AD55-0D14-49A5-B5B9-3147A216D8A5@zirakzigil.org> <20170917210736.Horde.TlHhnPnnzSWoAGi9k7b1_sp@webmail.leidinger.net> <20170918153212.Horde.reuh2WwJotWq2qHgpHwvnNq@webmail.leidinger.net> In-Reply-To: User-Agent: Horde Application Framework 5 Content-Type: multipart/signed; boundary="=_p2u5K6d2IcgLaDKZBPfnkxA"; protocol="application/pgp-signature"; micalg=pgp-sha1 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 20 Sep 2017 10:53:25 +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: Wed, 20 Sep 2017 06:33:12 -0000 This message is in MIME format and has been PGP signed. --=_p2u5K6d2IcgLaDKZBPfnkxA Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Giulio Ferro (from Wed, 20 Sep 2017=20=20 06:28:55=20+0200): > Ok, I'm progressing :) > > > I've patched, built and installed the new kernel. Now I can start the > jail with the new parameter. > > Unfortunately Xorg still fails to start... :( > > > > Here's my setup: > > > > /etc/rc.conf.local > ----------------------------------------------------------------------- > ... > jail_enable=3D"YES" > ... > ----------------------------------------------------------------------- > > > > > /etc/jail.conf > ----------------------------------------------------------------------- > exec.start =3D "/bin/sh /etc/rc"; > exec.stop =3D "/bin/sh /etc/rc.shutdown"; > exec.clean; > mount.devfs; > devfs_ruleset=3D1; > > path =3D "/usr/home/jails/$name"; > > xxx { > host.hostname =3D "xxx.xxx.xxx"; > vnet; > vnet.interface =3D epair0b, epair1b; > allow.kmem_access =3D "true"; > persist; > } > ----------------------------------------------------------------------- > > > > > /etc/devfs.rules > ----------------------------------------------------------------------- > [devfsrules_jail=3D1] > add path pf unhide > > add path kmem unhide > add path io unhide > add path mem unhide > add path pci unhide > add path tty unhide > add path ttyv0 unhide > add path ttyv1 unhide > add path ttyv8 unhide > ----------------------------------------------------------------------- You should have this on the host, not inside the jail (from the /dev=20=20 listing=20it looks like you get the full devfs, not only the limited=20=20 amount).=20Mine (rule 15) looks like this: ---snip--- [devfsrules_unhide_audio=3D5] add path 'audio*' unhide add path 'dsp*' unhide add path midistat unhide add path 'mixer*' unhide add path 'music*' unhide add path 'sequencer*' unhide add path sndstat unhide add path speaker unhide [devfsrules_unhide_input=3D7] add path 'atkbd*' unhide add path 'kbd*' unhide add path 'joy*' unhide add path 'psm*' unhide add path sysmouse unhide add path 'ukbd*' unhide add path 'ums*' unhide [devfsrules_unhide_xorg=3D8] add path agpgart unhide add path dri unhide add path 'dri/card*' unhide add path nvidiactl unhide add path 'nvidia*' unhide add path io unhide add path mem unhide add path pci unhide add path tty unhide add path ttyv0 unhide add path ttyv1 unhide add path ttyv8 unhide [devfsrules_unhide_cuse=3D13] add path cuse unhide add path video unhide add path 'video*' unhide add path dvb unhide add path 'dvb*' unhide add path 'adapter*' unhide add path input unhide add path 'input*' unhide [devfsrules_jail_desktop=3D15] add include $devfsrules_hide_all add include $devfsrules_unhide_basic add include $devfsrules_unhide_login add include $devfsrules_unhide_audio add include $devfsrules_unhide_input add include $devfsrules_unhide_xorg add include $devfsrules_unhide_kmem add include $devfsrules_unhide_cuse ---snip--- > Here's the xorg.conf (automatically created by xrdp) > ----------------------------------------------------------------------- > # cat xorg.conf > > Section "ServerLayout" > Identifier "X11 Server" > Screen "Screen (xrdpdev)" > InputDevice "xrdpMouse" "CorePointer" > InputDevice "xrdpKeyboard" "CoreKeyboard" > EndSection > > Section "ServerFlags" > Option "DontVTSwitch" "on" > Option "AutoAddDevices" "off" Option "AllowEmptyInput" "on" > EndSection > > Section "Module" > Load "dbe" > Load "ddc" > Load "extmod" > Load "glx" > Load "int10" > Load "record" > Load "vbe" > Load "xorgxrdp" > Load "fb" > EndSection > > Section "InputDevice" > Identifier "xrdpKeyboard" > Driver "xrdpkeyb" > EndSection > > Section "InputDevice" > Identifier "xrdpMouse" > Driver "xrdpmouse" > EndSection > > Section "Monitor" > Identifier "Monitor" > Option "DPMS" > HorizSync 30-80 > VertRefresh 60-75 > ModeLine "1920x1080" 138.500 1920 1968 2000 2080 1080 1083 1088=20=20 >=201111 +hsync -vsync > ModeLine "1280x720" 74.25 1280 1720 1760 1980 720 725 730 750=20=20 >=20+HSync +VSync > Modeline "1368x768" 72.25 1368 1416 1448 1528 768 771 781 790=20=20 >=20+hsync -vsync > Modeline "1600x900" 119.00 1600 1696 1864 2128 900 901 904 932=20=20 >=20-hsync +vsync > EndSection > > Section "Device" > Identifier "Video Card (xrdpdev)" > Driver "xrdpdev" > EndSection > > Section "Screen" > Identifier "Screen (xrdpdev)" > Device "Video Card (xrdpdev)" > Monitor "Monitor" > DefaultDepth 24 > SubSection "Display" > Depth 24 > Modes "640x480" "800x600" "1024x768" "1280x720" "1280x1024"=20=20 >=20"1600x900" "1920x1080" > EndSubSection > EndSection > ----------------------------------------------------------------------- > > > I can start xrdp with its sesman. But when xorg is launched, I still > have errors... > > Here the X log: > ----------------------------------------------------------------------- > # cat Xorg.13.log > [ 5629.107] > X.Org X Server 1.18.4 > Release Date: 2016-07-19 > [ 5629.107] X Protocol Version 11, Revision 0 > [ 5629.107] Build Operating System: FreeBSD 11.0-RELEASE-p12 amd64 > [ 5629.107] Current Operating System: FreeBSD xxx.xxx.xxx=20=20 >=2011.1-STABLE FreeBSD 11.1-STABLE #2 r323738M: Tue Sep 19 08:47:53 UTC=20= =20 >=202017 root@xxxhost.xxx.xxx:/usr/obj/usr/src/sys/XXXSRV amd64 > [ 5629.107] Build Date: 12 September 2017 08:39:56AM > [ 5629.107] > [ 5629.107] Current version of pixman: 0.34.0 > [ 5629.107] Before reporting problems, check http://wiki.x.org > to make sure that you have the latest version. > [ 5629.107] Markers: (--) probed, (**) from config file, (=3D=3D)=20=20 >=20default setting, > (++) from command line, (!!) notice, (II) informational, > (WW) warning, (EE) error, (NI) not implemented, (??) unknown. > [ 5629.107] (=3D=3D) Log file: "/var/log/Xorg.13.log", Time: Tue Sep 19= =20=20 >=2011:31:20 2017 > [ 5629.108] (++) Using config file: "/etc/X11/xrdp/xorg.conf" > [ 5629.108] (=3D=3D) ServerLayout "X11 Server" > [ 5629.108] (**) |-->Screen "Screen (xrdpdev)" (0) > [ 5629.108] (**) | |-->Monitor "Monitor" > [ 5629.108] (**) | |-->Device "Video Card (xrdpdev)" > [ 5629.108] (**) |-->Input Device "xrdpMouse" > [ 5629.108] (**) |-->Input Device "xrdpKeyboard" > [ 5629.108] (**) Option "DontVTSwitch" "on" > [ 5629.108] (**) Option "AutoAddDevices" "off" > [ 5629.108] (**) Not automatically adding devices > [ 5629.108] (=3D=3D) Automatically enabling devices > [ 5629.108] (=3D=3D) Not automatically adding GPU devices > [ 5629.108] (=3D=3D) Max clients allowed: 256, resource mask: 0x1fffff > [ 5629.108] (WW) The directory "/usr/local/share/fonts/misc/" does=20=20 >=20not exist. > [ 5629.108] Entry deleted from font path. > [ 5629.108] (WW) The directory "/usr/local/share/fonts/TTF/" does not ex= ist. > [ 5629.108] Entry deleted from font path. > [ 5629.108] (WW) The directory "/usr/local/share/fonts/OTF/" does not ex= ist. > [ 5629.108] Entry deleted from font path. > [ 5629.108] (WW) The directory "/usr/local/share/fonts/Type1/" does=20= =20 >=20not exist. > [ 5629.108] Entry deleted from font path. > [ 5629.108] (WW) The directory "/usr/local/share/fonts/100dpi/"=20=20 >=20does not exist. > [ 5629.108] Entry deleted from font path. > [ 5629.108] (WW) The directory "/usr/local/share/fonts/75dpi/" does=20= =20 >=20not exist. > [ 5629.108] Entry deleted from font path. > [ 5629.108] (=3D=3D) FontPath set to: > > [ 5629.108] (=3D=3D) ModulePath set to "/usr/local/lib/xorg/modules" > [ 5629.108] (II) Loader magic: 0x813b70 > [ 5629.108] (II) Module ABI versions: > [ 5629.108] X.Org ANSI C Emulation: 0.4 > [ 5629.108] X.Org Video Driver: 20.0 > [ 5629.108] X.Org XInput driver : 22.1 > [ 5629.108] X.Org Server Extension : 9.0 > [ 5629.108] (WW) checkDevMem: failed to open /dev/mem (Operation=20=20 >=20not permitted) > [ 5629.108] (--) PCI:*(0:0:2:0) 1013:00b8:5853:0001 rev 0, Mem @=20=20 >=200xf0000000/33554432, 0xf3000000/4096, BIOS @ 0x????????/65536 > [ 5629.108] (II) "glx" will be loaded. This was enabled by default=20=20 >=20and also specified in the config file. > [ 5629.108] (II) LoadModule: "dbe" > [ 5629.108] (II) Module "dbe" already built-in > [ 5629.108] (II) LoadModule: "ddc" > [ 5629.108] (II) Module "ddc" already built-in > [ 5629.108] (II) LoadModule: "extmod" > [ 5629.108] (II) Module "extmod" already built-in > [ 5629.108] (II) LoadModule: "glx" > [ 5629.108] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.s= o > [ 5629.109] (II) Module glx: vendor=3D"X.Org Foundation" > [ 5629.109] compiled for 1.18.4, module version =3D 1.0.0 > [ 5629.109] ABI class: X.Org Server Extension, version 9.0 > [ 5629.109] (=3D=3D) AIGLX enabled > [ 5629.109] (II) LoadModule: "int10" > [ 5629.109] (II) Loading /usr/local/lib/xorg/modules/libint10.so > [ 5629.109] (II) Module int10: vendor=3D"X.Org Foundation" > [ 5629.109] compiled for 1.18.4, module version =3D 1.0.0 > [ 5629.109] ABI class: X.Org Video Driver, version 20.0 > [ 5629.109] (II) LoadModule: "record" > [ 5629.109] (II) Module "record" already built-in > [ 5629.109] (II) LoadModule: "vbe" > [ 5629.109] (II) Loading /usr/local/lib/xorg/modules/libvbe.so > [ 5629.110] (II) Module vbe: vendor=3D"X.Org Foundation" > [ 5629.110] compiled for 1.18.4, module version =3D 1.1.0 > [ 5629.110] ABI class: X.Org Video Driver, version 20.0 > [ 5629.110] (II) LoadModule: "xorgxrdp" > [ 5629.110] (II) Loading /usr/local/lib/xorg/modules/libxorgxrdp.so > [ 5629.110] (II) Module XORGXRDP: vendor=3D"X.Org Foundation" > [ 5629.110] compiled for 1.18.4, module version =3D 1.0.0 > [ 5629.110] ABI class: X.Org Video Driver, version 20.0 > [ 5629.110] xorgxrdpSetup: > [ 5629.110] (II) LoadModule: "fb" > [ 5629.110] (II) Loading /usr/local/lib/xorg/modules/libfb.so > [ 5629.110] (II) Module fb: vendor=3D"X.Org Foundation" > [ 5629.110] compiled for 1.18.4, module version =3D 1.0.0 > [ 5629.110] ABI class: X.Org ANSI C Emulation, version 0.4 > [ 5629.110] (II) LoadModule: "xrdpdev" > [ 5629.110] (II) Loading /usr/local/lib/xorg/modules/drivers/xrdpdev_drv= .so > [ 5629.110] (II) Module XRDPDEV: vendor=3D"X.Org Foundation" > [ 5629.110] compiled for 1.18.4, module version =3D 1.0.0 > [ 5629.110] ABI class: X.Org Video Driver, version 20.0 > [ 5629.110] xrdpdevSetup: > [ 5629.110] (II) LoadModule: "xrdpmouse" > [ 5629.110] (II) Loading /usr/local/lib/xorg/modules/input/xrdpmouse_drv= .so > [ 5629.110] (II) Module XRDPMOUSE: vendor=3D"X.Org Foundation" > [ 5629.110] compiled for 1.18.4, module version =3D 1.0.0 > [ 5629.110] Module class: X.Org XInput Driver > [ 5629.110] ABI class: X.Org XInput driver, version 22.1 > [ 5629.110] rdpmousePlug: > [ 5629.110] (II) LoadModule: "xrdpkeyb" > [ 5629.110] (II) Loading /usr/local/lib/xorg/modules/input/xrdpkeyb_drv.= so > [ 5629.110] (II) Module XRDPKEYB: vendor=3D"X.Org Foundation" > [ 5629.110] compiled for 1.18.4, module version =3D 1.0.0 > [ 5629.110] Module class: X.Org XInput Driver > [ 5629.110] ABI class: X.Org XInput driver, version 22.1 > [ 5629.110] rdpkeybPlug: > [ 5629.111] rdpIdentify: > [ 5629.111] (II) XRDPDEV: driver for xrdp: XRDPDEV > [ 5629.111] rdpDriverFunc: op 10 > [ 5629.111] (WW) Falling back to old probe method for XRDPDEV > [ 5629.111] rdpProbe: > [ 5629.111] (II) Loading sub module "fb" > [ 5629.111] (II) LoadModule: "fb" > [ 5629.111] (II) Loading /usr/local/lib/xorg/modules/libfb.so > [ 5629.111] (II) Module fb: vendor=3D"X.Org Foundation" > [ 5629.111] compiled for 1.18.4, module version =3D 1.0.0 > [ 5629.111] ABI class: X.Org ANSI C Emulation, version 0.4 > [ 5629.111] (II) XRDPDEV(0): using default device > [ 5629.111] (WW) VGA arbiter: cannot open kernel arbiter, no=20=20 >=20multi-card support > [ 5629.111] rdpPreInit: > [ 5629.111] (**) XRDPDEV(0): Depth 24, (--) framebuffer bpp 32 > [ 5629.111] (=3D=3D) XRDPDEV(0): RGB weight 888 > [ 5629.111] (=3D=3D) XRDPDEV(0): Using gamma correction (1.0, 1.0, 1.0) > [ 5629.111] (=3D=3D) XRDPDEV(0): Default visual is TrueColor > [ 5629.111] (=3D=3D) XRDPDEV(0): DPI set to (96, 96) > [ 5629.111] (II) XRDPDEV(0): mode "640x480" ok > [ 5629.111] (II) XRDPDEV(0): mode "800x600" ok > [ 5629.111] (--) XRDPDEV(0): Virtual size is 800x600 (pitch 800) > [ 5629.111] (**) XRDPDEV(0): Default mode "800x600": 36.0 MHz=20=20 >=20(scaled from 0.0 MHz), 35.2 kHz, 56.2 Hz > [ 5629.111] (II) XRDPDEV(0): Modeline "800x600"x0.0 36.00 800=20=20 >=20824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz d) > [ 5629.111] (=3D=3D) Depth 24 pixmap format is 32 bpp > [ 5629.111] rdpScreenInit: virtualX 800 virtualY 600 rgbBits 8 depth 24 > [ 5629.111] rdpScreenInit: pfbMemory bytes 1920000 > [ 5629.111] rdpScreenInit: pfbMemory 0x807200000 > [ 5629.111] rdpSimdInit: assigning yuv functions > [ 5629.111] rdpSimdInit: cpuid ax 1 cx 0 return ax 0x000306f2 bx=20=20 >=200x00020800 cx 0xfffa3203 dx 0x178bfbff > [ 5629.111] rdpSimdInit: sse2 amd64 yuv functions assigned > [ 5629.111] rdpXvInit: depth 24 > [ 5629.111] (=3D=3D) XRDPDEV(0): Backing store enabled > [ 5629.111] rdpClientConInit: kill disconnected [0] timeout [0] sec > [ 5629.111] > [ 5629.111] rdpScreenInit: out > [ 5629.111] (=3D=3D) RandR enabled > [ 5629.111] MIT-SHM extension disabled due to lack of kernel support > [ 5629.111] (II) AIGLX: Screen 0 is not DRI2 capable > [ 5629.111] (EE) AIGLX: reverting to software rendering > [ 5629.140] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer > [ 5629.141] (II) AIGLX: Loaded and initialized swrast > [ 5629.141] (II) GLX: Initialized DRISWRAST GL provider for screen 0 > [ 5629.170] (II) Using input driver 'XRDPMOUSE' for 'xrdpMouse' > [ 5629.170] (**) Option "CorePointer" > [ 5629.170] (**) xrdpMouse: always reports core events > [ 5629.170] rdpmousePreInit: drv 0x803c15240 info 0x803c37d20, flags 0x0 > [ 5629.170] (II) XINPUT: Adding extended input device "xrdpMouse"=20=20 >=20(type: Mouse, id 6) > [ 5629.170] rdpmouseControl: what 0 > [ 5629.170] rdpmouseDeviceInit: > [ 5629.170] rdpmouseCtrl: > [ 5629.170] rdpRegisterInputCallback: type 1 proc 0x806da1d20 > [ 5629.170] (**) xrdpMouse: (accel) keeping acceleration scheme 1 > [ 5629.170] (**) xrdpMouse: (accel) acceleration profile 0 > [ 5629.170] (**) xrdpMouse: (accel) acceleration factor: 2.000 > [ 5629.170] (**) xrdpMouse: (accel) acceleration threshold: 4 > [ 5629.170] rdpmouseControl: what 1 > [ 5629.170] rdpmouseDeviceOn: > [ 5629.170] (II) Using input driver 'XRDPKEYB' for 'xrdpKeyboard' > [ 5629.170] (**) Option "CoreKeyboard" > [ 5629.170] (**) xrdpKeyboard: always reports core events > [ 5629.170] rdpkeybPreInit: drv 0x803c152c0 info 0x803c37e60, flags 0x0 > [ 5629.170] (II) XINPUT: Adding extended input device=20=20 >=20"xrdpKeyboard" (type: Keyboard, id 7) > [ 5629.170] rdpkeybControl: what 0 > [ 5629.170] rdpkeybDeviceInit: > [ 5629.193] rdpkeybChangeKeyboardControl: > [ 5629.193] rdpkeybChangeKeyboardControl: autoRepeat on > [ 5629.193] rdpRegisterInputCallback: type 0 proc 0x806fa41b0 > [ 5629.193] rdpkeybControl: what 1 > [ 5629.193] rdpkeybDeviceOn: > [ 5629.193] (II) config/devd: probing input devices... > [ 5629.194] (II) config/devd: adding input device (null) (/dev/kbdmux) > [ 5629.194] (II) AutoAddDevices is off - not adding device. > [ 5629.194] (II) config/devd: kbdmux is enabled, ignoring device atkbd0 > [ 5629.194] (II) config/devd: adding input device (null) (/dev/sysmouse) > [ 5629.194] (II) AutoAddDevices is off - not adding device. > [ 5629.227] (II) config/devd: adding input device Mouse (/dev/psm0) > [ 5629.227] (II) AutoAddDevices is off - not adding device. > [ 5629.228] (EE) config/devd: fail to connect to devd > [ 5629.228] [config] failed to initialise devd > [ 5629.228] rdpSaveScreen: > [ 5629.228] rdpDeferredRandR: > [ 5629.228] rdpResizeSession: width 1024 height 768 > [ 5629.228] calling RRScreenSizeSet > [ 5629.228] rdpRRScreenSetSize: width 1024 height 768 mmWidth 271=20=20 >=20mmHeight 203 > [ 5629.228] rdpRRGetInfo: > [ 5629.228] screen resized to 1024x768 > [ 5629.229] RRScreenSizeSet ok 1 > [ 5629.229] rdpResizeSession: width 1304 height 603 > [ 5629.229] calling RRScreenSizeSet > [ 5629.229] rdpRRScreenSetSize: width 1304 height 603 mmWidth 345=20=20 >=20mmHeight 160 > [ 5629.229] rdpRRGetInfo: > [ 5629.229] screen resized to 1304x603 > [ 5629.231] RRScreenSizeSet ok 1 > [ 5629.297] rdpInDeferredUpdateCallback: > [ 5629.297] rdpkeybChangeKeyboardControl: > [ 5629.297] rdpkeybChangeKeyboardControl: autoRepeat off > [ 5629.716] rdpClientConGotConnection: > [ 5629.716] rdpClientConGotConnection: g_sck_accept ok new_sck 6 > [ 5629.716] rdpClientConGotConnection: adding only clientCon > [ 5629.720] rdpClientConProcessMsgVersion: version 0 0 0 1 > [ 5629.720] rdpClientConProcessScreenSizeMsg: set width 1304 height=20= =20 >=20603 bpp 16 > [ 5629.720] rdpClientConProcessScreenSizeMsg: shmemid -1 shmemptr=20=20 >=200xffffffffffffffff > [ 5629.720] rdpClientConProcessMsgClientInput: invalidate x 0 y 0=20=20 >=20cx 1304 cy 603 > [ 5646.293] rdpClientConProcessMsgClientInfo: > [ 5646.293] got client info bytes 5744 > [ 5646.293] jpeg support 0 > [ 5646.293] offscreen support 0 > [ 5646.293] offscreen size 0 > [ 5646.293] offscreen entries 0 > [ 5646.293] client supports glyph cache but server disabled > [ 5646.293] client can not do offscreen to offscreen blits > [ 5646.293] client can do new(color) cursor > [ 5646.293] client can not do multimon > [ 5646.293] rdpRRSetRdpOutputs: numCrtcs 0 monitorCount 0 > [ 5646.293] rdpRRSetRdpOutputs: add output 0 left 0 top 0 width=20=20 >=201304 height 603 > [ 5646.293] rdpLoadLayout: keylayout 0x00000409 variant display 13 > [ 5646.294] rdpkeybChangeKeyboardControl: > [ 5646.294] rdpkeybChangeKeyboardControl: autoRepeat on > [ 5646.294] rdpkeybChangeKeyboardControl: > [ 5646.294] rdpkeybChangeKeyboardControl: autoRepeat on > [ 5646.320] (EE) > [ 5646.321] (EE) Backtrace: > [ 5646.322] (EE) 0: /usr/local/bin/Xorg (OsInit+0x38a) [0x5abfba] > [ 5646.324] (EE) 1: /lib/libthr.so.3 (_pthread_sigmask+0x544) [0x8025cbd= 94] > [ 5646.326] (EE) 2: /lib/libthr.so.3 (_pthread_getspecific+0xe5f)=20=20 >=20[0x8025cbbef] > [ 5646.327] (EE) 3: ? (?+0xe5f) [0x7ffffffffff2] > [ 5646.329] (EE) 4: /usr/local/lib/xorg/modules/libxorgxrdp.so=20=20 >=20(rdpCapture+0xf60) [0x806771aa0] > [ 5646.331] (EE) 5: /usr/local/lib/xorg/modules/libxorgxrdp.so=20=20 >=20(rdpClientConAddAllBox+0x408) [0x80676fbf8] > [ 5646.332] (EE) 6: /usr/local/lib/xorg/modules/libxorgxrdp.so=20=20 >=20(rdpClientConAddDirtyScreenReg+0x3c3) [0x80676ef13] > [ 5646.334] (EE) 7: /usr/local/bin/Xorg (WaitForSomething+0x103e) [0x5a4= 7ce] > [ 5646.335] (EE) 8: /usr/local/bin/Xorg (UpdateCurrentTimeIf+0x121)=20= =20 >=20[0x431621] > [ 5646.337] (EE) 9: /usr/local/bin/Xorg (remove_fs_handlers+0x597)=20=20 >=20[0x43b697] > [ 5646.338] (EE) 10: /usr/local/bin/Xorg (_start+0x17f) [0x42506f] > [ 5646.340] (EE) 11: ? (?+0x17f) [0x80083617f] > [ 5646.340] (EE) > [ 5646.340] (EE) Segmentation fault at address 0xffffffffffffffff > [ 5646.340] (EE) > Fatal server error: > [ 5646.340] (EE) Caught signal 11 (Segmentation fault). Server aborting > [ 5646.340] (EE) > [ 5646.340] (EE) > Please consult the The X.Org Foundation support > at http://wiki.x.org > for help. > [ 5646.340] (EE) Please also check the log file at=20=20 >=20"/var/log/Xorg.13.log" for additional information. > [ 5646.340] (EE) > [ 5646.340] rdpmouseControl: what 4 > [ 5646.340] rdpkeybControl: what 4 > [ 5646.340] rdpLeaveVT: > [ 5646.340] (EE) Server terminated with error (1). Closing log file. > ----------------------------------------------------------------------- > > > > I guess that the root of the issue may be here: > (WW) checkDevMem: failed to open /dev/mem (Operation not permitted) Are you starting X with the root user, respectively is it suid-root? > Did I miss something in the configuration? I still think it is the segfault, not the other WW items... You can try to hand-mount a full devfs into the path of the jail, then=20= =20 chroot=20into it from the host (do not start the jail), and then start=20= =20 X.=20This way you don'T have the access restrictions of the jail (full=20= =20 access=20on the host), and you can validate the executables/config. Once=20= =20 this=20is running, you can give it a try in the jail. You could ktrace=20= =20 the=20running vs. the jailed version then, this should reveal more low=20= =20 level=20info what it tries to do. Bye, Alexander --=20 http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_p2u5K6d2IcgLaDKZBPfnkxA Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJZwgt0AAoJEKrxQhqFIICEZYsP/2dgNtRhsCfcNHZDdcwmS/Es oY06u76FJiGBZ3Ne0LgP+q0AttUiximLSJU12aHzeQhDPyb8peKnBw6RsnLlocsr kuas3bZ7YKTV5VG01O4ieqjaD/oeAMGvIPzPHCfueXjGOaSfVYOKE/rEJlllYYhB 7U7O87KCaGxu41aDxMvRwYPffx7HbOG3UQUXIITMg0NxVztsM99sqCnNzXSD4qy2 HVEuymAdZY6LBDq1/gexrbzIwyahJYHQaoZH1VebFLSTQ3kLcxzY63xvgs+JCZh1 uwAudGiJ6uymoE3tth8kJQdZ+5PyIwDem53vlpNF0Srfn+701LhMCRBvTWMyJ5SJ vBwQfc2GbH6SxRPI/R3nzXd034HnWkByDiB39boLlRBBT4d6ZLtTj8eGb+G1yuSn kmNJCUcDoaLMvklX3DHtpJzQczCU3rfbw0JjgV8D53BbPrmV1EqGWKeDZI7LohDW pfRy2Moz4THxlcARedcpmJvfJR4udbAcacIYbvtAzvH1bYa7q9GjA1k7lDuM+Oi4 Fs3D5ZJSJIHl+KIaRxwr92vU8NWL7MyaEslU2/nEf5BVyNrcoKb2a3jkG3B2oCXQ nDc91tiL/ESS4ycYhSHRkyuAOUrMJSSk1ux93gzueUi6cZTprLtsLZJzvFM2Xv33 X50EYF8QHSaWQSNwWtjH =UWsV -----END PGP SIGNATURE----- --=_p2u5K6d2IcgLaDKZBPfnkxA--