]> git.baikalelectronics.ru Git - kernel.git/commit
LSM: Introduce inode_getsecid and ipc_getsecid hooks
authorAhmed S. Darwish <darwish.07@gmail.com>
Sat, 1 Mar 2008 19:51:09 +0000 (21:51 +0200)
committerJames Morris <jmorris@namei.org>
Fri, 18 Apr 2008 23:52:32 +0000 (09:52 +1000)
commitab756d2e797eef32306b73da5727cc0520e9fad7
tree1311a11332abb0828999a7347a07509a68dffb5f
parent678e73b4376fc7a38d5d51f5a435831f53a62711
LSM: Introduce inode_getsecid and ipc_getsecid hooks

Introduce inode_getsecid(inode, secid) and ipc_getsecid(ipcp, secid)
LSM hooks. These hooks will be used instead of similar exported
SELinux interfaces.

Let {inode,ipc,task}_getsecid hooks set the secid to 0 by default
if CONFIG_SECURITY is not defined or if the hook is set to
NULL (dummy). This is done to notify the caller that no valid
secid exists.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Acked-by: James Morris <jmorris@namei.org>
Reviewed-by: Paul Moore <paul.moore@hp.com>
include/linux/security.h
security/dummy.c
security/security.c