Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262174AbUKVQaa (ORCPT ); Mon, 22 Nov 2004 11:30:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262193AbUKVQaR (ORCPT ); Mon, 22 Nov 2004 11:30:17 -0500 Received: from facesaver.epoch.ncsc.mil ([144.51.25.10]:13486 "EHLO epoch.ncsc.mil") by vger.kernel.org with ESMTP id S262142AbUKVPz0 (ORCPT ); Mon, 22 Nov 2004 10:55:26 -0500 Subject: Re: [PATCH 2/5] selinux: adds a private inode operation From: Stephen Smalley To: Jeffrey Mahoney Cc: Andrew Morton , Linus Torvalds , Linux Kernel Mailing List , ReiserFS List , James Morris In-Reply-To: <1101130521.18273.9.camel@moss-spartans.epoch.ncsc.mil> References: <20041121001318.GC979@locomotive.unixthugs.org> <1101130521.18273.9.camel@moss-spartans.epoch.ncsc.mil> Content-Type: text/plain Organization: National Security Agency Message-Id: <1101138640.18273.13.camel@moss-spartans.epoch.ncsc.mil> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Mon, 22 Nov 2004 10:50:48 -0500 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1002 Lines: 22 On Mon, 2004-11-22 at 08:35, Stephen Smalley wrote: > Don't we also need to modify inode_has_perm() to skip checking if the > inode has the kernel SID (as is already done by socket_has_perm) to > avoid the search checks when the reiserfs code looks up xattrs? > Otherwise, we'll see access attempts by the process context on > directories with the kernel SID upon such lookups. Actually, I think we need a new flag field in the inode_security_struct to explicitly mark these "private" inodes for SELinux, so that inode_has_perm() can skip permission checking on them while still applying checks to any other inodes that may have the kernel SID (e.g. /proc/pid inodes for kernel threads). -- Stephen Smalley National Security Agency - 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/