Here's Serge's proposed patch to fix the post_lookup code. Does anyone have any objections to me applying it? thanks, greg k-h --- fs/namei.c.old Sat Aug 4 18:13:10 2001 +++ fs/namei.c Sat Aug 4 16:42:19 2001 @@ -735,23 +735,24 @@ dentry = cached_lookup(base, name, 0); if (!dentry) { struct dentry *new = d_alloc(base, name); dentry = ERR_PTR(-ENOMEM); if (!new) goto out; lock_kernel(); dentry = inode->i_op->lookup(inode, new); unlock_kernel(); - if (!dentry) + if (!dentry) { dentry = new; - else + security_ops->inode_ops->post_lookup(inode, dentry); + } else dput(new); } out: return dentry; } /* SMP-safe */ struct dentry * lookup_one_len(const char * name, struct dentry * base, int len) { unsigned long hash; _______________________________________________ linux-security-module mailing list linux-security-moduleat_private http://mail.wirex.com/mailman/listinfo/linux-security-module
This archive was generated by hypermail 2b30 : Tue Aug 07 2001 - 20:13:57 PDT