Date: Fri, 27 Sep 2024 12:01:07 +0000 From: =?iso-8859-1?Q?Quentin_Th=E9bault?= <quentin.thebault@defenso.fr> To: "freebsd-jail@freebsd.org" <freebsd-jail@freebsd.org> Subject: Devfs error with hierarchical jails Message-ID: <PR1P264MB227963FF9A676ED0C527ED84F56B2@PR1P264MB2279.FRAP264.PROD.OUTLOOK.COM>
next in thread | raw e-mail | index | archive | help
Hi,=0A= =0A= I am trying to make iocage usable in hierarchical jail scenarios.=0A= I think I solved most issues in the code, but devfs is giving me a hard tim= e. =0A= =0A= I put the following configuration both at the level1 and level2 jail:=0A= - allow_mount=3D1=0A= - allow_mount_devfs=3D1=0A= - enforce_statfs=3D1 (tried with 0 too but no change)=0A= - devfs_ruleset=3D0=0A= I also set children_max to 10 for the level1 jail.=0A= =0A= All the DEVFSIO_RADD errors I had went away when I added the ruleset=0A= setting, but I am still getting DEVFSIO_SGETNEXT and DEVFSIO_RGETNEXT=0A= related errors when I try to start the jail:=0A= =0A= > root@jaildev:~/iocage # iocage start thick=0A= > * Starting thick=0A= > devfs rule: ioctl DEVFSIO_SGETNEXT: Operation not permitted=0A= > devfs rule: ioctl DEVFSIO_RGETNEXT: Operation not permitted=0A= > + Start FAILED=0A= > mount: .: Operation not permitted=0A= > jail: ioc-thick: /sbin/mount -t devfs -oruleset=3D1000 . /iocage/jails/th= ick/root/dev: failed=0A= =0A= Any idea what's going on and how to fix this? Did I miss something?=0A= I tried to look for these DEVFSIO constants but even looking at the source= =0A= I don't really find any indication on what's wrong. =0A= =0A= Kind regards,=0A= --=0A= Quentin TH=C9BAULT=0A= =0A=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?PR1P264MB227963FF9A676ED0C527ED84F56B2>