android_kernel_sony_sdm845/security
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stephen Smalley 9d9c99a554 BACKPORT: selinux: wrap global selinux state
Define a selinux state structure (struct selinux_state) for
global SELinux state and pass it explicitly to all security server
functions.  The public portion of the structure contains state
that is used throughout the SELinux code, such as the enforcing mode.
The structure also contains a pointer to a selinux_ss structure whose
definition is private to the security server and contains security
server specific state such as the policy database and SID table.

This change should have no effect on SELinux behavior or APIs
(userspace or LSM).  It merely wraps SELinux state and passes it
explicitly as needed.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
[PM: minor fixups needed due to collisions with the SCTP patches]
Signed-off-by: Paul Moore <paul@paul-moore.com>

(cherry picked from commit aa8e712cee93d520e96a2ca8e3a20f807c937e3f)
Resolved conflicts around non-backported support for sctp and ib, as
well as missing cgroup and extended socket class policy capabilities.
Change-Id: I73b28fabb29249278ff9d3890f3a98b7baf74731
Bug: 140252993
Signed-off-by: Jeff Vander Stoep <jeffv@google.com>
Signed-off-by: Rapherion Rollerscaperers <rapherion@raphielgang.org>
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 18:06:58 +07:00
..
apparmor UPSTREAM: proc,security: move restriction on writing /proc/pid/attr nodes to proc 2026-05-15 18:02:34 +07:00
integrity BACKPORT: audit: use inline function to get audit context 2026-05-15 17:59:18 +07:00
keys This is the 4.9.259 stable release 2021-03-03 18:08:08 +01:00
loadpin UPSTREAM: LSM: Add /sys/kernel/security/lsm 2026-05-15 17:59:05 +07:00
pfe ICE, pfk: fix to set dio_inode precisely 2022-11-30 02:21:44 +02:00
selinux BACKPORT: selinux: wrap global selinux state 2026-05-15 18:06:58 +07:00
smack UPSTREAM: proc,security: move restriction on writing /proc/pid/attr nodes to proc 2026-05-15 18:02:34 +07:00
tomoyo UPSTREAM: LSM: Add /sys/kernel/security/lsm 2026-05-15 17:59:05 +07:00
yama UPSTREAM: LSM: Add /sys/kernel/security/lsm 2026-05-15 17:59:05 +07:00
commoncap.c UPSTREAM: LSM: Add /sys/kernel/security/lsm 2026-05-15 17:59:05 +07:00
device_cgroup.c device_cgroup: prepare code for bpf-based device controller 2026-05-15 17:55:40 +07:00
inode.c UPSTREAM: LSM: Add /sys/kernel/security/lsm 2026-05-15 17:59:05 +07:00
Kconfig Resolve merge conflict and enable HW FBE for ext4 fs 2018-05-22 12:58:05 +05:30
lsm_audit.c BACKPORT: audit: use inline function to get audit context 2026-05-15 17:59:18 +07:00
Makefile Resolve merge conflict and enable HW FBE for ext4 fs 2018-05-22 12:58:05 +05:30
min_addr.c
security.c UPSTREAM: proc,security: move restriction on writing /proc/pid/attr nodes to proc 2026-05-15 18:02:34 +07:00