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)
}
/* The cache filesystem doesn't have its own permission function,
* but we don't want to duplicate the VFS code here. In order
* to avoid looping from permission calling this function again,
* we temporarily override the permission operation while we call
* the VFS permission function.
* so we call the default one.
*/
inode->i_op->permission = NULL;
rc = permission(inode, mask, nd);
inode->i_op->permission = &presto_permission;
rc = vfs_permission(inode, mask, nd);
EXIT;
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