logo       

Proposed patch (was bug with reiserfs and patch-2.6.8-rc4-vs1.9.2.17.diff): msg#00117

linux.vserver

Subject: Proposed patch (was bug with reiserfs and patch-2.6.8-rc4-vs1.9.2.17.diff)

Hi,

Maybe I found a solution.

This could be just some bogus logic in capabilities verification, see the patch below.

Regards.


--- linux-2.6.8-rc4-vs1.9.2.17.orig/fs/reiserfs/ioctl.c 2004-08-13
15:52:02.000000000 +0200
+++ linux-2.6.8-rc4-vs1.9.2.17/fs/reiserfs/ioctl.c 2004-08-13
15:58:36.000000000 +0200
@@ -49,9 +49,9 @@
return -EFAULT;
oldflags = REISERFS_I(inode) -> i_attrs;
- if ( (oldflags & REISERFS_IMMUTABLE_FL) || ( ( (flags ^ oldflags)
&
- (REISERFS_IMMUTABLE_FL | REISERFS_IUNLINK_FL | REISERFS_APPEND_FL))
&&
- !capable( CAP_LINUX_IMMUTABLE ) ) )
+ if ( ( (oldflags & REISERFS_IMMUTABLE_FL) || ( (flags ^ oldflags)
&
+ (REISERFS_IMMUTABLE_FL | REISERFS_IUNLINK_FL | REISERFS_APPEND_FL) )
) &&
+ !capable( CAP_LINUX_IMMUTABLE ) )
return -EPERM;

if( ( flags & REISERFS_NOTAIL_FL ) &&

_______________________________________________
Vserver mailing list
Vserver@xxxxxxxxxxxxxxxxxxxxxx
http://list.linux-vserver.org/mailman/listinfo/vserver



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise