android_kernel_motorola_sm6375/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lokesh Gidra 4849cd6fa3
BACKPORT: security: add inode_init_security_anon() LSM hook
This change adds a new LSM hook, inode_init_security_anon(), that will
be used while creating secure anonymous inodes. The hook allows/denies
its creation and assigns a security context to the inode.

The new hook accepts an optional context_inode parameter that callers
can use to provide additional contextual information to security modules
for granting/denying permission to create an anon-inode of the same type.
This context_inode's security_context can also be used to initialize the
newly created anon-inode's security_context.

Signed-off-by: Lokesh Gidra <lokeshgidra@google.com>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
(cherry picked from commit 215b674b84dd052098fe6389e32a5afaff8b4d56)

Conflicts:
    include/linux/lsm_hook_defs.h

(1. Added LSM hook in lsm_hook.h and removd lsm_hook_defs.h as per
98e828a0650f348be85728c69875260cf78069e6, which is not merged here)

Signed-off-by: Lokesh Gidra <lokeshgidra@google.com>
Bug: 160737021
Bug: 169683130
Change-Id: I83fe318c891f034b4dd7f3f357cc74964b55ffc8
2025-02-20 04:17:45 +02:00
..
acpi
asm-generic
clocksource
crypto
drm This is the 5.4.285 stable release 2024-11-09 11:29:17 +00:00
dt-bindings
keys
kvm
linux BACKPORT: security: add inode_init_security_anon() LSM hook 2025-02-20 04:17:45 +02:00
math-emu
media
misc
net Merge tag 'ASB-2025-02-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2025-02-06 22:53:05 +02:00
pcmcia
ras
rdma
scsi
soc Merge android11-5.4.274 (564901b) into msm-5.4 2024-07-24 20:38:43 -07:00
sound
target
trace Merge tag 'ASB-2024-12-05_11-5.4' of https://android.googlesource.com/kernel/common into android13-5.4-lahaina 2024-12-17 03:24:53 +02:00
uapi BACKPORT: userfaultfd: add UFFD_USER_MODE_ONLY 2025-02-20 04:17:44 +02:00
vdso
video
xen xen/xenbus: fix locking 2024-12-14 19:44:47 +01:00
OWNERS