mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
bhyve/block_if: allow DIOCGMEDIASIZE ioctl
This is needed to get mediasize of the device after a resize event.
I missed this earlier as I was building WITH_BHYVE_SNAPSHOT, which
disables capsicum.
Reviewed by: khng, markj
Fixes: ae9ea22e14 ("bhyve: get mediasize for character devices when ...")
Differential Revision: https://reviews.freebsd.org/D34013
This commit is contained in:
parent
b7a74bbc41
commit
08cb63a12f
1 changed files with 1 additions and 1 deletions
|
|
@ -481,7 +481,7 @@ blockif_open(nvlist_t *nvl, const char *ident)
|
|||
|
||||
#ifndef WITHOUT_CAPSICUM
|
||||
cap_rights_t rights;
|
||||
cap_ioctl_t cmds[] = { DIOCGFLUSH, DIOCGDELETE };
|
||||
cap_ioctl_t cmds[] = { DIOCGFLUSH, DIOCGDELETE, DIOCGMEDIASIZE };
|
||||
#endif
|
||||
|
||||
pthread_once(&blockif_once, blockif_init);
|
||||
|
|
|
|||
Loading…
Reference in a new issue