Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Apr 2014 19:08:24 +0400
From:      Roman Bogorodskiy <novel@FreeBSD.org>
To:        Peter Grehan <grehan@freebsd.org>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: bhyve: allow specifiying tty by fd
Message-ID:  <20140413150823.GB99234@kloomba>
In-Reply-To: <534584FE.60807@freebsd.org>
References:  <20140305130030.GA40560@dev.san.ru> <5318BF7F.4060306@freebsd.org> <20140409172657.GB1313@kloomba> <534584FE.60807@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--pvezYHf7grwyp3Bc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

  Peter Grehan wrote:

> Hi Roman,
>=20
> >>> bhyve <snip>  -s 31,lpc -l com1,fd=3D19 vm0
> >>
> >>    Yes, useful idea, and will become more relevant in the capsicum wor=
ld
> >> of passing fd's to a sandboxed bhyve.
> >>
> >>    Thanks: I'll get this submitted.
> >
> > Hi Peter!
> >
> > Any news on that?
>=20
>   I started to do it, and then hesitated bit for two reasons. First,=20
> it's useful for all backends, but there still needs to be a type - file=
=20
> descriptors can't be treated as something opaque: there still needs to=20
> be knowledge of whether it's a socket, char device, file etc, so the=20
> option may need additional information to describe that.

Could it be an additional comma separated option? E.g.:

-l com1,fd=3D42,sock

or

-l com1,fd=3D42,tty

etc

>   Also, given that Capsicum wants to pass fd's as parameters, I was=20
> wondering if there is a general syntax style for doing this. "fd=3D%d"=20
> seems Ok, though it would be useful if there was something in libutil to=
=20
> parse an option like this if it is the preferred way forward for FreeBSD=
=20
> executables.
>=20
>   What do folk think ? Any useful precedents ?

Off the top of my head I cannot recall such an example in the tree.

Roman Bogorodskiy

--pvezYHf7grwyp3Bc
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (FreeBSD)

iQEcBAEBAgAGBQJTSqhnAAoJEMltX/4IwiJqWe0H/Raut30Kmj1/JSCqOtDc/U7b
3sYIS0df9VfRhlAI4kpnhM+4A6AHZ8+EW5hZuDPB36xeDnmkm3OtJVvWpMlG26yz
N9JZwcLuL61Sf3wLK5D8jLRqlvf6vdEdZd1YlcycumVLuS1/IPvURwN5WaER8xNT
AoSnpOesrrIfWnWD3GNxmur+tfAjRXD6DFhZ+qddTFI/TMO8rtQCIgrsH09lXrMK
dA6CwIurHNnr5ZG4j3kqf3mPyw6Agsqb9u5rib+YmvKqsn0wxDvAzP7xieZOHRnz
nsBTQsBdRNwBpeZLTWpVOarrpPG4ED81YdOVlDmFBidgLd6vppHDO5R+oEe1sIA=
=+Ll3
-----END PGP SIGNATURE-----

--pvezYHf7grwyp3Bc--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140413150823.GB99234>