2023-12-06 20:16:53

by Pedro Tammela

[permalink] [raw]
Subject: Re: [PATCH 0/3] net/sched: Load modules via alias

On 06/12/2023 16:27, Michal Koutný wrote:
> These modules may be loaded lazily without user's awareness and
> control. Add respective aliases to modules and request them under these
> aliases so that modprobe's blacklisting mechanism (through aliases)
> works for them. (The same pattern exists e.g. for filesystem
> modules.)
>
> Original module names remain unchanged.
>

Can't you just keep the sch-, cls-, act- prefixes for the aliases?
They look odd in the current patchset TBH


2023-12-06 21:18:36

by Michal Koutný

[permalink] [raw]
Subject: Re: [PATCH 0/3] net/sched: Load modules via alias

On Wed, Dec 06, 2023 at 05:16:28PM -0300, Pedro Tammela <[email protected]> wrote:
> Can't you just keep the sch-, cls-, act- prefixes for the aliases?
> They look odd in the current patchset TBH

I'm open to different better naming.

Although, this natural option would clash with the behavior
(modprobe(8)):

> there is no difference between _ and - in module names

Thus blacklisting via an alias vs not-blacklisting via non-canonical
name would contradict each other :-/

Michal


Attachments:
(No filename) (503.00 B)
signature.asc (235.00 B)
Download all attachments

2023-12-06 22:29:20

by Stephen Hemminger

[permalink] [raw]
Subject: Re: [PATCH 0/3] net/sched: Load modules via alias

On Wed, 6 Dec 2023 22:18:25 +0100
Michal Koutný <[email protected]> wrote:

> On Wed, Dec 06, 2023 at 05:16:28PM -0300, Pedro Tammela <[email protected]> wrote:
> > Can't you just keep the sch-, cls-, act- prefixes for the aliases?
> > They look odd in the current patchset TBH
>
> I'm open to different better naming.
>
> Although, this natural option would clash with the behavior
> (modprobe(8)):
>
> > there is no difference between _ and - in module names
>
> Thus blacklisting via an alias vs not-blacklisting via non-canonical
> name would contradict each other :-/
>
> Michal

It is not clear to me what this patchset is trying to fix.
Autoloading happens now, but it does depend on the name not alias.


Attachments:
(No filename) (849.00 B)
OpenPGP digital signature

2023-12-06 22:49:31

by Michal Koutný

[permalink] [raw]
Subject: Re: [PATCH 0/3] net/sched: Load modules via alias

On Wed, Dec 06, 2023 at 02:28:57PM -0800, Stephen Hemminger <[email protected]> wrote:
> It is not clear to me what this patchset is trying to fix.
> Autoloading happens now, but it does depend on the name not alias.

There are some more details in the thread of v1 [1] [2].
Does it clarify?

Thanks,
Michal

[1] https://lore.kernel.org/r/yerqczxbz6qlrslkfbu6u2emb5esqe7tkrexdbneite2ah2a6i@l6arp7nzyj75/
[2] Oh, I realize I forgot to add v2 to today's posting.



Attachments:
(No filename) (486.00 B)
signature.asc (235.00 B)
Download all attachments

2023-12-06 23:43:16

by Toke Høiland-Jørgensen

[permalink] [raw]
Subject: Re: [PATCH 0/3] net/sched: Load modules via alias

Michal Koutný <[email protected]> writes:

> On Wed, Dec 06, 2023 at 02:28:57PM -0800, Stephen Hemminger <[email protected]> wrote:
>> It is not clear to me what this patchset is trying to fix.
>> Autoloading happens now, but it does depend on the name not alias.
>
> There are some more details in the thread of v1 [1] [2].
> Does it clarify?

Yes, but this should be explained clearly in the commit message
(including the reason why this is useful, in the follow-up to [1]).

-Toke

2023-12-06 23:56:10

by Stephen Hemminger

[permalink] [raw]
Subject: Re: [PATCH 0/3] net/sched: Load modules via alias

On Wed, 6 Dec 2023 23:49:14 +0100
Michal Koutný <[email protected]> wrote:

> On Wed, Dec 06, 2023 at 02:28:57PM -0800, Stephen Hemminger <[email protected]> wrote:
> > It is not clear to me what this patchset is trying to fix.
> > Autoloading happens now, but it does depend on the name not alias.
>
> There are some more details in the thread of v1 [1] [2].
> Does it clarify?
>
> Thanks,
> Michal
>
> [1] https://lore.kernel.org/r/yerqczxbz6qlrslkfbu6u2emb5esqe7tkrexdbneite2ah2a6i@l6arp7nzyj75/
> [2] Oh, I realize I forgot to add v2 to today's posting.
>
>

So your using blacklist as workaround security method and the name confuses it now.


Attachments:
(No filename) (849.00 B)
OpenPGP digital signature