Re: [PATCH v1] driver: base: Add driver filter support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 8/5/2021 10:51 AM, Greg Kroah-Hartman wrote:

It's controlled by whatever you want to use in userspace.  usbguard has
been handling this logic in userspace for over a decade now just fine.


So how does that work with builtin USB drivers? Do you delay the USB binding until usbguard starts up?


This doesn't help us handle builtin drivers that initialize before user
space is up.
Then have the default setting for your bus be "unauthorized" like we
allow for some busses today.

We need some early boot drivers, just not all of them. For example in your scheme we would need to reject all early platform drivers, which would break booting. Or allow all early platform drivers, but then we exactly get into the problem that there are far too many of them to properly harden.


There is a platform bus, it's just a fake one.  The platform bus code
does the binding just like any other bus does, why is platform somehow
"special"?  Except for how it is abused...

For once it's usually all initialized early, so there's no way for user space to do anything.


-andi




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux