[patch] Fix for the permission problems in 2.1.36

Andi Kleen (andi@mlm.extern.lrz-muenchen.de)
Wed, 23 Apr 1997 22:52:52 +0200


Hi,

This patch fixes the permission problems in 2.1.36 (screen wouldn't
run when started from a normal user anymore, root wasn't able to overwrite
some files anymore etc.).

-Andi

--- linux/fs/inode.c-o Wed Apr 23 22:37:53 1997
+++ linux/fs/inode.c Wed Apr 23 22:39:08 1997
@@ -288,7 +288,7 @@

((attr->ia_valid & ATTR_GID) &&
(!in_group_p(attr->ia_gid) &&
- (attr->ia_gid != inode->i_gid))) ||
+ (attr->ia_gid != inode->i_gid)) && not_fsuser) ||

((attr->ia_valid & (ATTR_ATIME_SET | ATTR_MTIME_SET)) &&
(fsuid != iuid) && not_fsuser))

--
|andi@mlm.extern.lrz-muenchen.de     Nonsense is better than no sense at all.
|                                        -NoMeansNo,0-1=2