From: Eric W. Biederman Date: Mon, 26 Jun 2006 07:25:57 +0000 (-0700) Subject: [PATCH] proc: optimize proc_check_dentry_visible X-Git-Tag: v2.6.18-rc1~748 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b0c1dd38b66e2dd0cf655aa845e341b50b93ddd;p=pandora-kernel.git [PATCH] proc: optimize proc_check_dentry_visible The code doesn't need to sleep to when making this check so I can just do the comparison and not worry about the reference counts. TODO: While looking at this I realized that my original cleanup did not push the permission check far enough down into the stack. The call of proc_check_dentry_visible needs to move out of the generic proc readlink/follow link code and into the individual get_link instances. Otherwise the shared resources checks are not quite correct (shared files_struct does not require a shared fs_struct), and there are races with unshare. Signed-off-by: Eric W. Biederman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed