Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 2021 09:31:22 -0800
From:      Chuck Tuffli <chuck@freebsd.org>
To:        FreeBSD-Current <freebsd-current@freebsd.org>
Subject:   bhyve fopen failure
Message-ID:  <CAKAYmMK1b_9ShNFQm3HP--_F=dmWh_XR54PxF7Qbg2og0AgthA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I'm porting some code to bhyve and am getting a failure I don't
understand. This is git as of af11c2029006 FWIW.

The code in question is for an emulated device and looks like:
    dbg = fopen("/tmp/bhyve_ata.log", "w+");
    if (dbg == NULL)
        perror("fopen");

Running this fails with:
    fopen: Not permitted in capability mode
Googling suggests this might be capsicum related. If so, what do I
need to change to allow writes to a debug file?

--chuck



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKAYmMK1b_9ShNFQm3HP--_F=dmWh_XR54PxF7Qbg2og0AgthA>