diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2024-12-16 17:40:04 +0100 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2025-01-07 23:14:39 -0500 |
commit | 83e7e18eed6e06cd1ce82fa4b9c9a05c24f7a80b (patch) | |
tree | 20fe99dd706e6432ecda7fee213fca24ae7785f8 /security/selinux/ss/context.c | |
parent | 5e99b81f48cd565a5341c921e62fd09184d6bb72 (diff) |
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>
Diffstat (limited to 'security/selinux/ss/context.c')
-rw-r--r-- | security/selinux/ss/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/context.c b/security/selinux/ss/context.c index e39990f494dd..a528b7f76280 100644 --- a/security/selinux/ss/context.c +++ b/security/selinux/ss/context.c @@ -20,7 +20,7 @@ u32 context_compute_hash(const struct context *c) * context struct with only the len & str set (and vice versa) * under a given policy. Since context structs from different * policies should never meet, it is safe to hash valid and - * invalid contexts differently. The context_cmp() function + * invalid contexts differently. The context_equal() function * already operates under the same assumption. */ if (c->len) |