]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit6b89a74be0fbbc6cc639d5cf7dcf8e6ee0f120a7
treec56574f86d518feb898e934e428dbae999236b5a
parent0ce784ca729dce8c9076a6339a15530ca13212f2
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