linux-next/security/selinux/include
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
..
audit.h selinux: fix typos in comments 2022-06-10 15:49:15 -04:00
avc_ss.h selinux: stop passing selinux_state pointers and their offspring 2023-03-14 15:22:45 -04:00
avc.h selinux: stop passing selinux_state pointers and their offspring 2023-03-14 15:22:45 -04:00
classmap.h lsm/stable-6.1 PR 20221003 2022-10-03 17:51:52 -07:00
conditional.h selinux: stop passing selinux_state pointers and their offspring 2023-03-14 15:22:45 -04:00
ibpkey.h selinux: include necessary headers in headers 2022-05-03 14:11:13 -04:00
ima.h selinux: stop passing selinux_state pointers and their offspring 2023-03-14 15:22:45 -04:00
initial_sid_to_string.h selinux: declare data arrays const 2022-05-03 15:53:49 -04:00
netif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
netlabel.h security: pass asoc to sctp_assoc_request and sctp_sk_clone 2021-11-03 11:09:20 +00:00
netnode.h selinux: include necessary headers in headers 2022-05-03 14:11:13 -04:00
netport.h selinux: include necessary headers in headers 2022-05-03 14:11:13 -04:00
objsec.h LSM: Infrastructure management of the superblock 2021-04-22 12:22:10 -07:00
policycap_names.h selinux: declare data arrays const 2022-05-03 15:53:49 -04:00
policycap.h selinux: declare data arrays const 2022-05-03 15:53:49 -04:00
security.h selinux: stop passing selinux_state pointers and their offspring 2023-03-14 15:22:45 -04:00
xfrm.h selinux: include necessary headers in headers 2022-05-03 14:11:13 -04:00