linux/security/selinux/ss
Linus Torvalds 51e3b98d73 selinux/stable-6.19 PR 20251201
-----BEGIN PGP SIGNATURE-----
 
 iQJIBAABCgAyFiEES0KozwfymdVUl37v6iDy2pc3iXMFAmkuAKEUHHBhdWxAcGF1
 bC1tb29yZS5jb20ACgkQ6iDy2pc3iXPKeA/8DSW+sTkQ9BMGGnyuH1uU/r84qtVh
 Ft6pnIPzrogE/GKcQeFgFA9D7gQbB8J39PSxZLS3lp0UiuPCuq+D09L+uzDKzDCD
 Avfe84dwsI5OiplPKyHiG3bF9W2+A1zkwH2j+5uC6yF8v9J9vglo4u5vAYeE2wxA
 X4b2r9jMm7WJ/KFNiSiiLGEhOSjVVUrJULcmWMRPPruplPDC4dLnqYTWTbkrfF8h
 /oXv/+ssqbj6FqfL4WaRnjN8GgZcwaWy1qu9LVlZ40iphpbVAyPBJPLJS6Q4hhOl
 mMHUbYkxALPyW7riQxoXAegQjJyGgKn8Bli9U6bkiKFA2yeIhJFX+OyV1SlOAs/J
 g6s5XfeCzqY0Tw3eqvT1YRhp10GcA7EtBYvhAe5ARq7PkMoqxmiI587piVX9hbos
 a0AH9CDNoOw+8QXx27sOoD1YIaiYD9fikXKymrzRRaW/GX6i43XIKiELBMuKoIVZ
 iwualvQiGBLLczzm5rdqPcLgp09Agn4AHfvFWXKFgS4+IJGKjeeXNOjsp9oFEivq
 RnXmDpa+nBud5zeTSeSpOY2L0pvuIG5N25N6U9bTsDe+4Y6p0qIAUy8e4sQ0PA8P
 xyp9/fcNr9jwHeLTjDbxZqZ+MU3GLIIVPdl0zq4z2J8nhkW3wD3pQX6B4qPIuXLx
 YP3nwhAT9T+hU7w=
 =IvVa
 -----END PGP SIGNATURE-----

Merge tag 'selinux-pr-20251201' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux

Pull selinux updates from Paul Moore:

 - Improve the granularity of SELinux labeling for memfd files

   Currently when creating a memfd file, SELinux treats it the same as
   any other tmpfs, or hugetlbfs, file. While simple, the drawback is
   that it is not possible to differentiate between memfd and tmpfs
   files.

   This adds a call to the security_inode_init_security_anon() LSM hook
   and wires up SELinux to provide a set of memfd specific access
   controls, including the ability to control the execution of memfds.

   As usual, the commit message has more information.

 - Improve the SELinux AVC lookup performance

   Adopt MurmurHash3 for the SELinux AVC hash function instead of the
   custom hash function currently used. MurmurHash3 is already used for
   the SELinux access vector table so the impact to the code is minimal,
   and performance tests have shown improvements in both hash
   distribution and latency.

   See the commit message for the performance measurments.

 - Introduce a Kconfig option for the SELinux AVC bucket/slot size

   While we have the ability to grow the number of AVC hash buckets
   today, the size of the buckets (slot size) is fixed at 512. This pull
   request makes that slot size configurable at build time through a new
   Kconfig knob, CONFIG_SECURITY_SELINUX_AVC_HASH_BITS.

* tag 'selinux-pr-20251201' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux:
  selinux: improve bucket distribution uniformity of avc_hash()
  selinux: Move avtab_hash() to a shared location for future reuse
  selinux: Introduce a new config to make avc cache slot size adjustable
  memfd,selinux: call security_inode_init_security_anon()
2025-12-03 10:45:47 -08:00
..
avtab.c selinux: improve bucket distribution uniformity of avc_hash() 2025-10-23 18:24:30 -04:00
avtab.h selinux: use known type instead of void pointer 2025-01-07 23:14:39 -05:00
conditional.c selinux: make more use of str_read() when loading the policy 2025-01-07 23:14:40 -05:00
conditional.h selinux: use known type instead of void pointer 2025-01-07 23:14:39 -05:00
constraint.h selinux: fix style issues in security/selinux/ss/constraint.h 2024-02-23 17:26:02 -05:00
context.c selinux: rename comparison functions for clarity 2025-01-07 23:14:39 -05:00
context.h selinux: rename comparison functions for clarity 2025-01-07 23:14:39 -05:00
ebitmap.c selinux: use known type instead of void pointer 2025-01-07 23:14:39 -05:00
ebitmap.h selinux: use known type instead of void pointer 2025-01-07 23:14:39 -05:00
hashtab.c selinux: add __GFP_NOWARN to hashtab_init() allocations 2025-06-19 17:24:57 -04:00
hashtab.h selinux: constify source policy in cond_policydb_dup() 2024-04-30 19:01:04 -04:00
mls.c selinux: avoid unnecessary indirection in struct level_datum 2025-01-07 23:14:40 -05:00
mls.h selinux: fix style issues in security/selinux/ss/mls.h 2024-02-23 17:26:05 -05:00
mls_types.h selinux: rename comparison functions for clarity 2025-01-07 23:14:39 -05:00
policydb.c selinux: introduce neveraudit types 2025-06-19 17:23:04 -04:00
policydb.h selinux: introduce neveraudit types 2025-06-19 17:23:04 -04:00
services.c selinux: move initcalls to the LSM framework 2025-10-22 19:24:28 -04:00
services.h selinux: fix style issues in security/selinux/ss/services.h 2024-02-23 17:26:07 -05:00
sidtab.c selinux: rename comparison functions for clarity 2025-01-07 23:14:39 -05:00
sidtab.h selinux: fix style issues in security/selinux/ss/sidtab.h 2024-02-23 17:26:07 -05:00
symtab.c selinux: improve symtab string hashing 2024-03-27 19:26:25 -04:00
symtab.h selinux: fix style issues in security/selinux/ss/symtab.h 2024-02-23 17:26:08 -05:00