Re: [PATCH] selinux: use isdigit() in selinux_genfs_get_sid()

From: Paul Moore

Date: Tue Nov 17 2026 - 16:11:15 EST


On Oct 14, 2026 Thorsten Blum <blum@xxxxxxxxxx> wrote:
>
> Use isdigit() to replace the open-coded implementation.
>
> Signed-off-by: Thorsten Blum <blum@xxxxxxxxxx>
> Acked-by: Stephen Smalley <stephen.smalley.work@xxxxxxxxx>
> ---
> security/selinux/hooks.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)

As mentioned earlier, this is a partial dup of a patch that is currently
in the queue to be reviewed, however, that patch combines this change with
another unrelated change, so merging this ahead of the other patch might
be beneficial.

Merged into selinux/dev, thanks.

--
paul-moore.com