⬢ DragonFlyBSD Kernel Audit
DF-4724 / run.log
← back to finding ↓ download raw
cat: /dev/premtest0: opened by unprivileged uid=1001 after FAILED attach
=============================================================

[run_root] # sh /tmp/premtest/build_and_load.sh   (make + kldload ./premtest.ko)
BUILD_RC=0
premtest0 irq 9 at device 1.3 on pci0
PREMTEST: attach() on premtest0: make_dev(0666) then FAIL ENXIO (simulates aureal mixer_init-ok + later goto bad)
device_probe_and_attach: premtest0 attach returned 6

--- NODE after failed attach ---
crw-rw-rw-  1 root wheel 32, 0x00000000 Sep 23 02:09 /dev/premtest0

[run_user] $ id
uid=1001(maxx) gid=1001(maxx) groups=1001(maxx)
[run_user] $ sh -c 'exec 3<>/dev/premtest0'; echo OPEN_RC=$?
OPEN_RC=0

[run_root] # dmesg | tail -1
PREMTEST: open() reached module code (node alive after failed attach)

[run_root] # kldunload premtest     (guest hygiene; real aureal has NO such cleanup)
UNLOAD_RC=0
# ls /dev/premtest*
ls: /dev/premtest*: No such file or directory