From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Morris Subject: Re: [PATCH 5/9] SELinux: remove redundant exports Date: Tue, 4 Mar 2008 08:20:08 +1100 (EST) Message-ID: References: <20080301194752.GA19636@ubuntu> <20080301195832.GF19636@ubuntu> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: In-Reply-To: <20080301195832.GF19636@ubuntu> Sender: linux-security-module-owner@vger.kernel.org To: "Ahmed S. Darwish" Cc: Chris Wright , Stephen Smalley , Eric Paris , Casey Schaufler , David Woodhouse , Paul Moore , Andrew Morton , LKML , Audit-ML , LSM-ML List-Id: linux-audit@redhat.com On Sat, 1 Mar 2008, Ahmed S. Darwish wrote: > 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 > Signed-off-by: Ahmed S. Darwish Acked-by: James Morris -- James Morris