Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762544AbYCCVVh (ORCPT ); Mon, 3 Mar 2008 16:21:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758408AbYCCVVQ (ORCPT ); Mon, 3 Mar 2008 16:21:16 -0500 Received: from namei.org ([69.55.235.186]:42077 "EHLO us.intercode.com.au" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759778AbYCCVVO (ORCPT ); Mon, 3 Mar 2008 16:21:14 -0500 Date: Tue, 4 Mar 2008 08:19:37 +1100 (EST) From: James Morris X-X-Sender: jmorris@us.intercode.com.au To: "Ahmed S. Darwish" cc: Chris Wright , Stephen Smalley , Eric Paris , Casey Schaufler , David Woodhouse , Paul Moore , Andrew Morton , LKML , Audit-ML , LSM-ML Subject: Re: [PATCH 3/9] Audit: use new LSM hooks instead of SELinux exports In-Reply-To: <20080301195438.GD19636@ubuntu> Message-ID: References: <20080301194752.GA19636@ubuntu> <20080301195438.GD19636@ubuntu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1034 Lines: 33 On Sat, 1 Mar 2008, Ahmed S. Darwish wrote: > Stop using 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) > kfree(ctx) > > and use following generic LSM equivalents respectively: > security_inode_getsecid(inode, secid) > security_ipc_getsecid*(ipcp, secid) > security_task_getsecid(tsk, secid) > security_sid_to_secctx(sid, ctx, len) > security_release_secctx(ctx, len) > > Call security_release_secctx only if security_secid_to_secctx > succeeded. > > Signed-off-by: Casey Schaufler > Signed-off-by: Ahmed S. Darwish Acked-by: James Morris -- James Morris -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/