]> git.hungrycats.org Git - linux/commit
[PATCH] Remove use of nameidata by selinux_inode_permission
authorAndrew Morton <akpm@osdl.org>
Tue, 30 Dec 2003 07:43:03 +0000 (23:43 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 30 Dec 2003 07:43:03 +0000 (23:43 -0800)
commite606758e59f0a821b1db8387f1199931d4cd307f
tree7fcf7eecef3645c482e11ea99a5fbbf8d8873776
parent38181ac4b92c29575c5c5fcce8cf9fcf76785ed1
[PATCH] Remove use of nameidata by selinux_inode_permission

From: Stephen Smalley <sds@epoch.ncsc.mil>

This patch removes the use of nameidata by selinux_inode_permission, as this
appears to be unsafe in certain cases (e.g.  path_walk call from
rpc_lookup_parent), leading to an Oops if d_path is subsequently called by
avc_audit on the (mnt,dentry) pair to generate a pathname for an audit
message.

The change does not affect the ability of SELinux to perform its permission
check (which only requires the inode), only the set of information that is
available for audit messages.  We'll investigate better approaches for the
SELinux audit generation in the future.
security/selinux/hooks.c