bhyve: whitespace fix for r313727

Reported by:	jhb
This commit is contained in:
Ed Maste 2017-02-14 16:49:32 +00:00
parent d0d587c787
commit 111142bcf1

View File

@ -134,11 +134,14 @@ console_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes,
if (!opened) {
#ifndef WITHOUT_CAPSICUM
cap_rights_init(&rights, CAP_EVENT, CAP_IOCTL, CAP_READ, CAP_WRITE);
if (cap_rights_limit(STDIN_FILENO, &rights) == -1 && errno != ENOSYS)
errx(EX_OSERR, "Unable to apply rights for sandbox");
if (cap_ioctls_limit(STDIN_FILENO, cmds, nitems(cmds)) == -1 && errno != ENOSYS)
errx(EX_OSERR, "Unable to apply rights for sandbox");
cap_rights_init(&rights, CAP_EVENT, CAP_IOCTL, CAP_READ,
CAP_WRITE);
if (cap_rights_limit(STDIN_FILENO, &rights) == -1 &&
errno != ENOSYS)
errx(EX_OSERR, "Unable to apply rights for sandbox");
if (cap_ioctls_limit(STDIN_FILENO, cmds, nitems(cmds)) == -1 &&
errno != ENOSYS)
errx(EX_OSERR, "Unable to apply rights for sandbox");
#endif
ttyopen();
opened = 1;