]> www.infradead.org Git - users/dwmw2/linux.git/commit
selinux: rename comparison functions for clarity
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 16 Dec 2024 16:40:04 +0000 (17:40 +0100)
committerPaul Moore <paul@paul-moore.com>
Wed, 8 Jan 2025 04:14:39 +0000 (23:14 -0500)
commit83e7e18eed6e06cd1ce82fa4b9c9a05c24f7a80b
tree20fe99dd706e6432ecda7fee213fca24ae7785f8
parent5e99b81f48cd565a5341c921e62fd09184d6bb72
selinux: rename comparison functions for clarity

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@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/context.c
security/selinux/ss/context.h
security/selinux/ss/ebitmap.c
security/selinux/ss/ebitmap.h
security/selinux/ss/mls_types.h
security/selinux/ss/services.c
security/selinux/ss/sidtab.c