From: Eric Paris Date: Wed, 29 Oct 2008 21:06:46 +0000 (-0400) Subject: SELinux: check open perms in dentry_open not inode_permission X-Git-Tag: v2.6.29-rc1~588^2^2~107 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b6a5a37f87a414ef8636e36ec75accb27bb7508;p=pandora-kernel.git SELinux: check open perms in dentry_open not inode_permission Some operations, like searching a directory path or connecting a unix domain socket, make explicit calls into inode_permission. Our choices are to either try to come up with a signature for all of the explicit calls to inode_permission and do not check open on those, or to move the open checks to dentry_open where we know this is always an open operation. This patch moves the checks to dentry_open. Signed-off-by: Eric Paris Acked-by: Stephen Smalley Signed-off-by: James Morris --- Reading git-diff-tree failed