]> git.baikalelectronics.ru Git - kernel.git/commit
SELinux: remove redundant exports
authorAhmed S. Darwish <darwish.07@gmail.com>
Sat, 1 Mar 2008 19:58:32 +0000 (21:58 +0200)
committerJames Morris <jmorris@namei.org>
Fri, 18 Apr 2008 23:52:36 +0000 (09:52 +1000)
commit362d018432fbcd8349b7efce8f0927aca5c560af
treec56574f86d518feb898e934e428dbae999236b5a
parent891de0d98f0909f7d60ddb4cda373716d0379955
SELinux: remove redundant exports

Remove the following exported SELinux interfaces:
selinux_get_inode_sid(inode, sid)
selinux_get_ipc_sid(ipcp, sid)
selinux_get_task_sid(tsk, sid)
selinux_sid_to_string(sid, ctx, len)

They can be substitued with the following generic equivalents
respectively:
new LSM hook, inode_getsecid(inode, secid)
new LSM hook, ipc_getsecid*(ipcp, secid)
LSM hook, task_getsecid(tsk, secid)
LSM hook, sid_to_secctx(sid, ctx, len)

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/selinux.h
security/selinux/exports.c