Re: [PATCH] libsepol/cil: Return SEPOL_ERR on failure to set bit

Stephen Smalley <[email protected]> Mon, 27 Jul 2026 16:18:02 -0400
Newsgroups org.kernel.vger.selinux
Message-ID <CAEjxPJ5=09dE-kTkugWdh50gpVNA1YrgBaeYp-===h5devBEhg@mail.gmail.com>
On Mon, Jul 27, 2026 at 1:56 PM Stephen Smalley
<[email protected]> wrote:
>
> On Mon, Jul 27, 2026 at 1:39 PM James Carter <[email protected]> wrote:
> >
> > The functions cil_typepermissive_to_policydb() and
> > cil_typeneveraudit_to_policydb() return rc when ebitmap_set_bit()
> > fails, but the rc value at the point is SEPOL_OK.
> >
> > Return SEPOL_ERR instead of rc when ebitmap_set_bit() fails.
> >
> > Signed-off-by: James Carter <[email protected]>
>
> Acked-by: Stephen Smalley <[email protected]>

Merged.