Re: [PATCH v2] lib: parser: Fix match_wildcard to correctly handle trailing stars
From: Andrew Morton
Date: Fri Mar 27 2026 - 11:23:38 EST
On Fri, 27 Mar 2026 19:11:21 +0900 Takaya Saeki <takayas@xxxxxxxxxx> wrote:
> > Sorry for the confusion; let me correct myself. It's not that wildcard
> > is preferable to glob, but genfs_seclabel_wildcard is already merged
> > and in use so moving from wildcard to glob would introduce breaking
> > changes. Let me invite Takaya who possibly has more rationale for the
> > wildcard.
>
> Yes, there wasn't strong motivation to avoid glob; wildcards were sufficient,
> so we just didn't consider adopting glob.
> Since glob is a superset of wildcards and doesn't treat slashes as
> special characters,
> it would certainly be more convenient to use. We might want to improve SELinux
> later including the network interface matching, which also uses
> wildcard matching.
OK, thanks.
It isn't a big deal at all - I'm just wondering if we have an
opportunity to remove some code by migrating all wildcard users over to
glob.