]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - security/security.c
security: Add a cred_getsecid hook
authorMatthew Garrett <mjg59@google.com>
Mon, 8 Jan 2018 21:36:19 +0000 (13:36 -0800)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Fri, 23 Mar 2018 10:31:11 +0000 (06:31 -0400)
commit3ec30113264a7bcd389f51d1738e42da0f41bb5a
tree75a1465c8f53522dafcf2d41085c925cb025e29f
parent5893ed18a26d1f56b97c0290b0cbbc2d49d6de28
security: Add a cred_getsecid hook

For IMA purposes, we want to be able to obtain the prepared secid in the
bprm structure before the credentials are committed. Add a cred_getsecid
hook that makes this possible.

Signed-off-by: Matthew Garrett <mjg59@google.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Cc: Paul Moore <paul@paul-moore.com>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
include/linux/lsm_hooks.h
include/linux/security.h
security/security.c
security/selinux/hooks.c
security/smack/smack_lsm.c