linux/security/selinux/ss
Christian Göttsche 08a12b39e2 selinux: drop avtab_search()
avtab_search() shares the same logic with avtab_search_node(), except
that it returns, if found, a pointer to the struct avtab_node member
datum instead of the node itself.  Since the member is an embedded
struct, and not a pointer, the returned value of avtab_search() and
avtab_search_node() will always in unison either be NULL or non-NULL.

Drop avtab_search() and replace its calls by avtab_search_node() to
deduplicate logic and adopt the only caller caring for the type of
the returned value accordingly.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
2023-07-19 11:04:28 -04:00
..
avtab.c selinux: drop avtab_search() 2023-07-19 11:04:28 -04:00
avtab.h selinux: drop avtab_search() 2023-07-19 11:04:28 -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 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
context.c selinux: hash context structure directly 2020-04-17 16:04:34 -04:00
context.h selinux: keep context struct members in sync 2023-05-18 13:38:39 -04:00
ebitmap.c selinux: declare read-only parameters const 2022-08-30 17:14:36 -04:00
ebitmap.h selinux: declare read-only parameters const 2022-08-30 17:14:36 -04:00
hashtab.c selinux: fix bad cleanup on error in hashtab_duplicate() 2022-05-17 18:34:35 -04:00
hashtab.h selinux: refactor changing booleans 2020-08-17 21:00:33 -04:00
mls_types.h selinux: declare read-only parameters const 2022-08-30 17:14:36 -04:00
mls.c selinux: drop return statement at end of void functions 2022-02-18 10:42:12 -05:00
mls.h selinux: hash context structure directly 2020-04-17 16:04:34 -04:00
policydb.c selinux: introduce an initial SID for early boot processes 2023-07-10 14:23:56 -04:00
policydb.h selinux: check for multiplication overflow in put_entry() 2023-07-18 18:29:46 -04:00
services.c selinux: drop avtab_search() 2023-07-19 11:04:28 -04:00
services.h selinux: stop passing selinux_state pointers and their offspring 2023-03-14 15:22:45 -04:00
sidtab.c selinux/stable-6.2 PR 20221212 2022-12-13 09:32:05 -08:00
sidtab.h selinux: remove the sidtab context conversion indirect calls 2022-11-09 11:00:49 -05:00
symtab.c selinux: fix implicit conversions in the symtab 2023-07-18 18:29:49 -04:00
symtab.h selinux: fix implicit conversions in the symtab 2023-07-18 18:29:49 -04:00