Summary: | Unable to build bhyve with error in rfb.c with LibreSSL in base | ||
---|---|---|---|
Product: | Base System | Reporter: | Shirkdog <mshirk> |
Component: | bin | Assignee: | Marcelo Araujo <araujo> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | araujo, emaste, fabian.freyer |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Shirkdog
2017-06-04 23:08:27 UTC
FreeBSD -CURRENT is building as of r319602 (see e.g. https://ci.freebsd.org/tinderbox/) so please provide more detail of your build environment. (Not to say there's a problem with the change; it looks like it's probably reasonable - although looking only at the diff you posted I wonder why have casts at all.) (In reply to Ed Maste from comment #1) Right, this seems to be an issue with downstream FreeBSD projects with LibreSSL in base (should this not cause an issue in TrueOS?) I will also defer to others as to whether the cast is necessary, as I matched the function variables being passed in and was happy my world built :) Without having tested it, that change looks reasonable to me. I did a test by adding "password=notsecurepass" to my bhyve rfb command line and I was prompted with vncviewer to enter the password and it worked. I also verified it will fail if I enter the wrong password. I'm taking it. A commit references this bug: Author: araujo Date: Thu Jun 8 04:54:16 UTC 2017 New revision: 319682 URL: https://svnweb.freebsd.org/changeset/base/319682 Log: Make the VNC authentication build with LibreSSL on HardenedBSD and TrueOS. PR: 219790 Submitted by: Shirkdog <mshirk@daemon-security.com> Reviewed by: grehan and rgrimes MFC after: 4 weeks. Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D11071 Changes: head/usr.sbin/bhyve/rfb.c A commit references this bug: Author: araujo Date: Sun Jul 2 04:14:35 UTC 2017 New revision: 320567 URL: https://svnweb.freebsd.org/changeset/base/320567 Log: MFC r319487-r319488, r319682, r319968, r319995 r319487: Add VNC Authentication support based on RFC6143 section 7.2.2. Submitted by: Fabian Freyer <fabian.freyer@physik.tu-berlin.de> Reworked by: myself Reviewed by: grehan, rgrimes and jilles Relnotes: Yes. Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D10818 r319488: Bump manpage date. r319682: Make the VNC authentication build with LibreSSL on HardenedBSD and TrueOS. PR: 219790 Submitted by: Shirkdog <mshirk@daemon-security.com> Reviewed by: grehan and rgrimes Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D11071 r319968: Initialize variables and use byteorder(9) instead of aliasing char array buf via uint32_t pointer. CID: 1375949 Reported by: Coverity, cem Reviewed by: cem Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D11153 r319995: Check if pthread_create(3) successfully created the thread prior to call pthread_join(3). The variable tid is not yet initialized in case the authentication fails at early stage, that would lead pthread_join be called with an uninitialized variable. CID: 1375950 Reported by: Coverity, cem Reviewed by: cem Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D11150 Changes: _U stable/11/ stable/11/usr.sbin/bhyve/Makefile stable/11/usr.sbin/bhyve/bhyve.8 stable/11/usr.sbin/bhyve/pci_fbuf.c stable/11/usr.sbin/bhyve/rfb.c stable/11/usr.sbin/bhyve/rfb.h |