linux/security/selinux/ss
Jacob Satterfield 1712ed6215 selinux: refactor avtab_node comparisons
In four separate functions within avtab, the same comparison logic is
used. The only difference is how the result is handled or whether there
is a unique specifier value to be checked for or used.

Extracting this functionality into the avtab_node_cmp() function unifies
the comparison logic between searching and insertion and gets rid of
duplicative code so that the implementation is easier to maintain.

Signed-off-by: Jacob Satterfield <jsatterfield.linux@gmail.com>
Reviewed-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
2023-11-20 20:28:22 -05:00
..
avtab.c selinux: refactor avtab_node comparisons 2023-11-20 20:28:22 -05:00
avtab.h selinux: move debug functions into debug configuration 2023-07-28 14:09:24 -04:00
conditional.c selinux: drop avtab_search() 2023-07-19 11:04:28 -04:00
conditional.h selinux: avoid bool as identifier name 2023-06-05 17:04:01 -04:00
constraint.h selinux: update my email address 2023-07-19 11:27:02 -04:00
context.c selinux: hash context structure directly 2020-04-17 16:04:34 -04:00
context.h selinux: update my email address 2023-07-19 11:27:02 -04:00
ebitmap.c selinux: update my email address 2023-07-19 11:27:02 -04:00
ebitmap.h selinux: update my email address 2023-07-19 11:27:02 -04:00
hashtab.c selinux: print sum of chain lengths^2 for hash tables 2023-09-13 13:46:56 -04:00
hashtab.h selinux: print sum of chain lengths^2 for hash tables 2023-09-13 13:46:56 -04:00
mls.c selinux: avoid implicit conversions in mls code 2023-08-03 22:19:57 -04:00
mls.h selinux: update my email address 2023-07-19 11:27:02 -04:00
mls_types.h selinux: update my email address 2023-07-19 11:27:02 -04:00
policydb.c selinux: update filenametr_hash() to use full_name_hash() 2023-11-16 12:45:33 -05:00
policydb.h selinux: update my email address 2023-07-19 11:27:02 -04:00
services.c selinux: make left shifts well defined 2023-08-09 19:07:48 -04:00
services.h selinux: update type for number of class permissions in services code 2023-08-09 19:07:48 -04:00
sidtab.c selinux: Annotate struct sidtab_str_cache with __counted_by 2023-09-12 16:58:40 -04:00
sidtab.h selinux: update my email address 2023-07-19 11:27:02 -04:00
symtab.c selinux: update my email address 2023-07-19 11:27:02 -04:00
symtab.h selinux: update my email address 2023-07-19 11:27:02 -04:00