Date: Wed, 09 Apr 2014 10:35:58 -0700 From: Peter Grehan <grehan@freebsd.org> To: Roman Bogorodskiy <novel@FreeBSD.org> Cc: freebsd-virtualization@freebsd.org Subject: Re: bhyve: allow specifiying tty by fd Message-ID: <534584FE.60807@freebsd.org> In-Reply-To: <20140409172657.GB1313@kloomba> References: <20140305130030.GA40560@dev.san.ru> <5318BF7F.4060306@freebsd.org> <20140409172657.GB1313@kloomba>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Roman, >>> bhyve <snip> -s 31,lpc -l com1,fd=19 vm0 >> >> Yes, useful idea, and will become more relevant in the capsicum world >> of passing fd's to a sandboxed bhyve. >> >> Thanks: I'll get this submitted. > > Hi Peter! > > Any news on that? I started to do it, and then hesitated bit for two reasons. First, it's useful for all backends, but there still needs to be a type - file descriptors can't be treated as something opaque: there still needs to be knowledge of whether it's a socket, char device, file etc, so the option may need additional information to describe that. Also, given that Capsicum wants to pass fd's as parameters, I was wondering if there is a general syntax style for doing this. "fd=%d" seems Ok, though it would be useful if there was something in libutil to parse an option like this if it is the preferred way forward for FreeBSD executables. What do folk think ? Any useful precedents ? later, Peter.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?534584FE.60807>