[Bug 273405] wc /dev/wmistat0 fails with EBADF

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 28 Aug 2023 17:00:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273405

            Bug ID: 273405
           Summary: wc /dev/wmistat0 fails with EBADF
           Product: Base System
           Version: 13.2-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: jfc@mit.edu

Created attachment 244424
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=244424&action=edit
truss -f wc /dev/wmistat0

If I cat /dev/wmistat0 I see

GUID                                  INST EXPE METH STR EVENT OID
{ABBC0F6A-8EA1-11D1-00A0-C90629100000}   1 NO   WMAA NO  NO    AA
{05901221-D566-11D1-B2F0-00A0C9062910}   1 NO   NO   NO  NO    BA

If instead I wc /dev/wmistat0 I see a "Bad file descriptor" error.  The may be
related to capsicum sandboxing.  Output of truss is attached.

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