Re: [PATCH RFC v2 6/22] selinux: rename comparison functions for clarity
From: Paul Moore
Date: Tue Jan 07 2025 - 22:00:48 EST
On Dec 16, 2024 =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgoettsche@xxxxxxxxxxxxx> wrote:
>
> The functions context_cmp(), mls_context_cmp() and ebitmap_cmp() are not
> traditional C style compare functions returning -1, 0, and 1 for less
> than, equal, and greater than; they only return whether their arguments
> are equal.
>
> Signed-off-by: Christian Göttsche <cgzones@xxxxxxxxxxxxxx>
> ---
> v2: also convert ebitmap_cmp() as suggested by Daniel
> ---
> security/selinux/ss/context.c | 2 +-
> security/selinux/ss/context.h | 14 +++++++-------
> security/selinux/ss/ebitmap.c | 8 ++++----
> security/selinux/ss/ebitmap.h | 2 +-
> security/selinux/ss/mls_types.h | 2 +-
> security/selinux/ss/services.c | 2 +-
> security/selinux/ss/sidtab.c | 2 +-
> 7 files changed, 16 insertions(+), 16 deletions(-)
Merged into selinux/dev, thanks.
--
paul-moore.com