[Bug 260081] bhyve: capsicum preventing blockif hole-punching detection

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 27 Nov 2021 21:16:21 UTC

            Bug ID: 260081
           Summary: bhyve: capsicum preventing blockif hole-punching
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: chuck@FreeBSD.org

Formatting a file-backed NVMe device in bhyve fails because the
blockif_candelete function returns FALSE on kernel which supports

# uname -mrsvK
FreeBSD 14.0-CURRENT FreeBSD 14.0-CURRENT main-81b22a9892 GENERIC  amd64

This appears to happen because the cap_right_init(3) call does not allow the
use of fpathconf(2). The attached patch which adds the CAP_FPATHCONF right
fixes this.

You are receiving this mail because:
You are the assignee for the bug.