[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-bugs
Subject:    security(8) spams "Device not configured" daily
From:       Alexander Klimov <a () kli ! mov>
Date:       2024-04-29 8:20:20
Message-ID: 371b4066-0e48-4582-800e-de63d04370c9 () kli ! mov
[Download RAW message or body]

Hello everyone!

To reproduce the following, a laptop and two USB sticks are enough.

1) Plug them in and create a RAID 1C or crypto.
One stick is the key, the other contains the array partition(s).

2) Run bioctl softraid0. Ensure everything is as expected.

3) Detach the key stick.

4) Run bioctl softraid0. The key stick is still listed!

5) Run /usr/libexec/security as often as you want.
Every time it will say: "disklabel: /dev/rXdYc: Device not configured"

I thought about making a patch for security(8) to ignore key disks, but
I know you OpenBSD devs want things to work properly (or not at all).

So I've digged through the softraid code. But it seems not to contain
hotplug handling for key disks (neither even bioctl -O handling).
And I have no idea where to even start fixing.

Best,
A/K

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic