Re: [PATCH 01/11] libselinux/man: mention errno for regex compilation failure

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

 



On Fri, Jan 5, 2024 at 2:15 PM James Carter <jwcart2@xxxxxxxxx> wrote:
>
> On Tue, Dec 19, 2023 at 11:10 AM Christian Göttsche
> <cgzones@xxxxxxxxxxxxxx> wrote:
> >
> > Selabel lookups might fail with errno set to EINVAL in the unlikely case
> > a regular expression from the file context definition failed to compile.
> >
> > Signed-off-by: Christian Göttsche <cgzones@xxxxxxxxxxxxxx>
>
> For these 11 patches:
> Acked-by: James Carter <jwcart2@xxxxxxxxx>
>

These 11 patches have been merged.
Thanks,
Jim

> > ---
> >  libselinux/man/man3/selabel_lookup.3            | 3 ++-
> >  libselinux/man/man3/selabel_lookup_best_match.3 | 3 ++-
> >  2 files changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/libselinux/man/man3/selabel_lookup.3 b/libselinux/man/man3/selabel_lookup.3
> > index 4e47c3ec..e20345e6 100644
> > --- a/libselinux/man/man3/selabel_lookup.3
> > +++ b/libselinux/man/man3/selabel_lookup.3
> > @@ -64,7 +64,8 @@ The
> >  .I key
> >  and/or
> >  .I type
> > -inputs are invalid, or the context being returned failed validation.
> > +inputs are invalid, or the context being returned failed validation, or a
> > +regular expression in the database failed to compile.
> >  .TP
> >  .B ENOMEM
> >  An attempt to allocate memory failed.
> > diff --git a/libselinux/man/man3/selabel_lookup_best_match.3 b/libselinux/man/man3/selabel_lookup_best_match.3
> > index ef2efb4a..985a8600 100644
> > --- a/libselinux/man/man3/selabel_lookup_best_match.3
> > +++ b/libselinux/man/man3/selabel_lookup_best_match.3
> > @@ -78,7 +78,8 @@ The
> >  .I key
> >  and/or
> >  .I type
> > -inputs are invalid, or the context being returned failed validation.
> > +inputs are invalid, or the context being returned failed validation, or a
> > +regular expression in the database failed to compile.
> >  .TP
> >  .B ENOMEM
> >  An attempt to allocate memory failed.
> > --
> > 2.43.0
> >
> >





[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux