]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit995bb33247892a1f88743e9b3e1055f2bbee32b7
tree75a1465c8f53522dafcf2d41085c925cb025e29f
parent510aa08a398125318fdcc349f492a8c4c5cf2a58
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