linux-stable/security/selinux/ss
Stephen Smalley e67b79850f selinux: stop passing selinux_state pointers and their offspring
Linus observed that the pervasive passing of selinux_state pointers
introduced by me in commit aa8e712cee ("selinux: wrap global selinux
state") adds overhead and complexity without providing any
benefit. The original idea was to pave the way for SELinux namespaces
but those have not yet been implemented and there isn't currently
a concrete plan to do so. Remove the passing of the selinux_state
pointers, reverting to direct use of the single global selinux_state,
and likewise remove passing of child pointers like the selinux_avc.
The selinux_policy pointer remains as it is needed for atomic switching
of policies.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/oe-kbuild-all/202303101057.mZ3Gv5fK-lkp@intel.com/
Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
2023-03-14 15:22:45 -04:00
..
avtab.c selinux: declare data arrays const 2022-05-03 15:53:49 -04:00
avtab.h selinux: constify some avtab function arguments 2021-05-10 21:35:02 -04:00
conditional.c selinux/stable-5.18 PR 20220321 2022-03-21 20:47:54 -07:00
conditional.h selinux: refactor changing booleans 2020-08-17 21:00:33 -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: declare read-only parameters const 2022-08-30 17:14:36 -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.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
mls_types.h selinux: declare read-only parameters const 2022-08-30 17:14:36 -04:00
policydb.c selinux: declare data arrays const 2022-05-03 15:53:49 -04:00
policydb.h selinux: Add boundary check in put_entry() 2022-06-14 21:52:37 -04:00
services.c selinux: stop passing selinux_state pointers and their offspring 2023-03-14 15:22:45 -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: prepare for inlining of hashtab functions 2020-07-09 19:05:36 -04:00
symtab.h selinux: specialize symtab insert and search functions 2020-07-08 20:21:43 -04:00