2007-01-10 06:33:09 +00:00
|
|
|
Remove redundant check from proc_setattr()
|
|
|
|
|
|
|
|
notify_change() already calls security_inode_setattr() before
|
|
|
|
calling iop->setattr.
|
|
|
|
|
|
|
|
Signed-off-by: Tony Jones <tonyj@suse.de>
|
|
|
|
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
|
2007-04-03 12:04:05 +00:00
|
|
|
Signed-off-by: John Johansen <jjohansen@suse.de>
|
2007-01-10 06:33:09 +00:00
|
|
|
|
2007-02-07 11:54:51 +00:00
|
|
|
Index: b/fs/proc/base.c
|
2007-01-10 06:33:09 +00:00
|
|
|
===================================================================
|
2007-02-07 11:54:51 +00:00
|
|
|
--- a/fs/proc/base.c
|
|
|
|
+++ b/fs/proc/base.c
|
2007-01-10 06:33:09 +00:00
|
|
|
@@ -344,11 +344,8 @@ static int proc_setattr(struct dentry *d
|
|
|
|
return -EPERM;
|
|
|
|
|
|
|
|
error = inode_change_ok(inode, attr);
|
|
|
|
- if (!error) {
|
|
|
|
- error = security_inode_setattr(dentry, attr);
|
|
|
|
- if (!error)
|
|
|
|
- error = inode_setattr(inode, attr);
|
|
|
|
- }
|
|
|
|
+ if (!error)
|
|
|
|
+ error = inode_setattr(inode, attr);
|
|
|
|
return error;
|
|
|
|
}
|
|
|
|
|