android_kernel_sony_sdm845/security/apparmor
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stephen Smalley fa065f0c57 UPSTREAM: proc,security: move restriction on writing /proc/pid/attr nodes to proc
Processes can only alter their own security attributes via
/proc/pid/attr nodes.  This is presently enforced by each individual
security module and is also imposed by the Linux credentials
implementation, which only allows a task to alter its own credentials.
Move the check enforcing this restriction from the individual
security modules to proc_pid_attr_write() before calling the security hook,
and drop the unnecessary task argument to the security hook since it can
only ever be the current task.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Acked-by: John Johansen <john.johansen@canonical.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 18:02:34 +07:00
..
include macro: introduce COUNT_ARGS() macro 2026-05-15 17:55:41 +07:00
.gitignore
apparmorfs.c treewide: Backport new vmalloc for large performance benefits 2026-05-15 17:48:25 +07:00
audit.c apparmor: fix uninitialized lsm_audit member 2016-07-12 08:43:10 -07:00
capability.c apparmor: fix capability to not use the current task, during reporting 2013-10-29 21:33:37 -07:00
context.c
crypto.c apparmor: use SHASH_DESC_ON_STACK 2020-02-17 20:27:09 -08:00
domain.c kernel: Fix build errors with LLVM 2020-02-25 13:08:36 +05:30
file.c apparmor: fix uninitialized lsm_audit member 2016-07-12 08:43:10 -07:00
ipc.c apparmor: fix capability to not use the current task, during reporting 2013-10-29 21:33:37 -07:00
Kconfig apparmor: add parameter to control whether policy hashing is used 2016-07-12 08:43:10 -07:00
lib.c treewide: Backport new vmalloc for large performance benefits 2026-05-15 17:48:25 +07:00
lsm.c UPSTREAM: proc,security: move restriction on writing /proc/pid/attr nodes to proc 2026-05-15 18:02:34 +07:00
Makefile
match.c treewide: Backport new vmalloc for large performance benefits 2026-05-15 17:48:25 +07:00
path.c apparmor: internal paths should be treated as disconnected 2016-07-12 08:43:10 -07:00
policy.c apparmor: fix module parameters can be changed after policy is locked 2016-07-12 08:43:10 -07:00
policy_unpack.c apparmor: enforce nullbyte at end of tag string 2019-07-10 09:55:29 +02:00
procattr.c
resource.c apparmor: allow SYS_CAP_RESOURCE to be sufficient to prlimit another task 2016-07-12 08:43:10 -07:00
sid.c