About this list Date view Thread view Subject view Author view Attachment view

From: Luc Dumaine (luc.dumaine_at_sitiv.fr)
Date: Fri 13 Aug 2004 - 15:05:51 BST


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_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 13 Aug 2004 - 15:06:04 BST by hypermail 2.1.3