From: Ahmed S. Darwish Date: Sat, 1 Mar 2008 19:51:09 +0000 (+0200) Subject: LSM: Introduce inode_getsecid and ipc_getsecid hooks X-Git-Tag: v2.6.26-rc1~1137^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a076191f373abaeb4aa5f6755d22e49db98940f;p=pandora-kernel.git 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 Signed-off-by: Ahmed S. Darwish Acked-by: James Morris Reviewed-by: Paul Moore --- Reading git-diff-tree failed