lkml.org 
[lkml]   [2022]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 1/1] modules: add modalias file to sysfs for modules.
On Thu, Dec 01, 2022 at 03:16:30PM -0600, Allen Webb wrote:
> USB devices support the authorized attribute which can be used by

You don't mention USB in the subject line?

> user-space to implement trust-based systems for enabling USB devices. It
> would be helpful when building these systems to be able to know in
> advance which kernel drivers (or modules) are reachable from a
> particular USB device.
>
> This information is readily available for external modules in
> modules.alias. However, builtin kernel modules are not covered. This
> patch adds a sys-fs attribute to both builtin and loaded modules

"sysfs" No "-", that only goes in my last name :)

And as you added sysfs files, you have to also have Documentation/ABI/
entries that describe the new files. Without that, this patch can't
even be considered for review :(

And maybe this should be a patch series and not just 1 patch? Remember
a patch can only do "one logical thing", and you seem to be doing a lot
of different things in this single patch.

Would you be able to review this patch as-is if you were in our shoes?
Remember we deal with thousands of patches each week.

> exposing the matching rules in the modalias format for integration
> with tools like USBGuard.
>
> Note that as written CONFIG_MODULES must be enabled.

What happens if CONFIG_MODULES is not enabled? And why should that
matter?

thanks,

greg k-h

\
 
 \ /
  Last update: 2022-12-02 13:50    [W:0.107 / U:1.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site