diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2017-04-27 05:48:52 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2017-04-27 05:48:52 +0000 |
| commit | 007e172d64c834b458a33bbccd2a9a9cc0bf6ace (patch) | |
| tree | b492da660836224afdb792aec810b9da75398d61 | |
| parent | ad81354ceb3247a7508d60a99e03c8678da2b370 (diff) | |
Notes
| -rw-r--r-- | usr.sbin/bhyve/pci_passthru.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/pci_passthru.c b/usr.sbin/bhyve/pci_passthru.c index 2c5366d51d6b..f314679d912b 100644 --- a/usr.sbin/bhyve/pci_passthru.c +++ b/usr.sbin/bhyve/pci_passthru.c @@ -703,6 +703,7 @@ passthru_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts) #ifndef WITHOUT_CAPSICUM cap_rights_clear(&rights, CAP_IOCTL); + cap_rights_set(&rights, CAP_MMAP_RW); if (cap_rights_limit(memfd, &rights) == -1 && errno != ENOSYS) errx(EX_OSERR, "Unable to apply rights for sandbox"); #endif |
