⬢ DragonFlyBSD Kernel Audit
DF-5316 / run.patched.log
← back to finding ↓ download raw
# DF-5316 validation on PATCHED kernel (fix.diff: caps_priv_check_self
# gate added to ugen_set_config + ugen_set_interface), kernel #1
# 15:25:39 UTC 2026, unprivileged maxx:
$ ./df5316
[*] running as uid=1001 euid=1001
[before] curr_config_index = 0
[before] /dev/usb/0.2.1 (interrupt-IN endpoint node): present
[1] USB_REQUEST(SET_CONFIGURATION) = -1 errno=Operation not permitted
[2] USB_SET_CONFIG(255=UNCONFIG) = -1 errno=Operation not permitted   <-- gated
[after unconfig] curr_config_index = 0                                <-- unchanged
[after unconfig] /dev/usb/0.2.1 (interrupt-IN endpoint node): present
[3] USB_SET_ALTINTERFACE(0,0) = -1 errno=Operation not permitted      <-- gated
RUN516_RC=0
# (the restore step [4] was not reached because [2] now fails -- exactly
#  the intended behaviour for an unprivileged caller; the device stays
#  configured, proving the reconfiguration never happened)