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/sidtab.c | |
| parent | selinux: rework match_ipv6_addrmask() (diff) | |
| download | linux-83e7e18eed6e06cd1ce82fa4b9c9a05c24f7a80b.tar.gz linux-83e7e18eed6e06cd1ce82fa4b9c9a05c24f7a80b.zip | |
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/sidtab.c')
| -rw-r--r-- | security/selinux/ss/sidtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/sidtab.c b/security/selinux/ss/sidtab.c index cb7125cc7f8e..59f8c09158ef 100644 --- a/security/selinux/ss/sidtab.c +++ b/security/selinux/ss/sidtab.c @@ -66,7 +66,7 @@ static u32 context_to_sid(struct sidtab *s, struct context *context, u32 hash) hash_for_each_possible_rcu(s->context_to_sid, entry, list, hash) { if (entry->hash != hash) continue; - if (context_cmp(&entry->context, context)) { + if (context_equal(&entry->context, context)) { sid = entry->sid; break; } |
