Commit cda47027 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] intermezzo ->permission() idiocy

	... yes, Virginia, some perverts *do* tweak widely shared
method tables and do that in very sensitive spots, at that...
parent d1218015
...@@ -862,14 +862,9 @@ int presto_permission(struct inode *inode, int mask, struct nameidata *nd) ...@@ -862,14 +862,9 @@ int presto_permission(struct inode *inode, int mask, struct nameidata *nd)
} }
/* The cache filesystem doesn't have its own permission function, /* The cache filesystem doesn't have its own permission function,
* but we don't want to duplicate the VFS code here. In order * so we call the default one.
* to avoid looping from permission calling this function again,
* we temporarily override the permission operation while we call
* the VFS permission function.
*/ */
inode->i_op->permission = NULL; rc = vfs_permission(inode, mask, nd);
rc = permission(inode, mask, nd);
inode->i_op->permission = &presto_permission;
EXIT; EXIT;
return rc; return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment