Page MenuHomeFreeBSD

VNC Auth for bhyve_graphics
AbandonedPublic

Authored by fabian.freyer_physik.tu-berlin.de on Jun 29 2016, 8:12 PM.
Tags
None
Referenced Files
F89325843: D7029.diff
Fri, Jul 26, 4:46 PM
Unknown Object (File)
Wed, Jul 24, 7:17 AM
Unknown Object (File)
Sat, Jul 20, 10:46 PM
Unknown Object (File)
Mon, Jul 15, 1:41 AM
Unknown Object (File)
Thu, Jul 11, 9:22 PM
Unknown Object (File)
Fri, Jul 5, 6:20 PM
Unknown Object (File)
Wed, Jul 3, 9:26 AM
Unknown Object (File)
Mon, Jul 1, 9:18 PM
Tokens
"Like" token, awarded by vincent_up4.com.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

fabian.freyer_physik.tu-berlin.de retitled this revision from to VNC Auth for bhyve_graphics.
fabian.freyer_physik.tu-berlin.de edited the test plan for this revision. (Show Details)
projects/bhyve_graphics/rfb.c
793

oops, this was a debugging value, I'll remove this in a second version of this patch

799

could probably allocate only 16 characters here, depending on how DES_set_key handles strings

813

could probably allocate only 16 characters here

814

I'm a bit unsure whether RAND_seed has to be called before this.

828

since this is also just used for a calloc, and DES_ecb_encrypt only writes 8 bytes at a time, we could probably also allocate only 16 bytes here without writing out of bounds

855

also a debugging info, should be removed

Hello, I'm running FreeBSD 11 and I have a couple of bhyve VMs running VNC graphics. I am told this patch might allow me to use the native macOS VNC client. I would like to test it. What is the easiest way to use this patch? Thanks.

Click on the 'Download raw diff' button on the right-hand side menu. Apply that diff to a FreeBSD source tree and rebuild.

(You can probably short-cut this by applying it to just the usr.sbin/bhyve directory, and rebuilding in that)

I've not forgotten this diff but it was low on the priority list since there is a workaround in being able to use alternate VNC viewers. But, if there's enough interest I'll try and make some progress on it.

I will try to compile the "official FreeBSD 11 RELEASE" with this patch applied all in a bhyve virtual machine and extract only the bhyve binary. Does that sound feasible?

Yes, that works. It's a bit unnecessary however, I always used make BHYVE_SYSDIR=/usr/src/ -m /usr/src/share/mk -C /path/to/local/bhyve_graphics/checkout.