Herbert Poetzl wrote:
hmm, the ioctl has major drawbacks (especially not
being able to reach non-regular inode entries) but
in the case of IUNLINK and IMMUTABLE that would not
apply anyway ...
Indeed. Besides, the feature isn't particularly vserver related.
that would be defeating the purporse, as allowing
to modify the barrier flag will certainly create
new and wonderful exploit cases ...
#define EXT2_FL_USER_MODIFIABLE 0x080380FF /* User
... otoh, might be something we could arrange,
I think (patch is welcome)
Attached! Hopefully the ML won't eat it this time :-)
--
Sam Vilain, sam /\T vilain |><>T net, PGP key ID: 0x05B52F13
(include my PGP key ID in personal replies to avoid spam filtering)
diff -ur linux-2.6.9-final-vs1.9.3-rc3.orig/include/linux/ext2_fs.h linux-2.6.9-final-vs1.9.3-rc3/include/linux/ext2_fs.h
--- linux-2.6.9-final-vs1.9.3-rc3.orig/include/linux/ext2_fs.h 2004-10-18 17:41:27.000000000 +1300
+++ linux-2.6.9-final-vs1.9.3-rc3/include/linux/ext2_fs.h 2004-10-18 17:46:48.000000000 +1300
@@ -196,8 +196,13 @@
#define EXT2_IUNLINK_FL 0x08000000 /* Immutable unlink */
#define EXT2_RESERVED_FL 0x80000000 /* reserved for ext2 lib */
+#ifdef CONFIG_VSERVER_LEGACY
+#define EXT2_FL_USER_VISIBLE 0x0803DFFF /* User visible flags */
+#define EXT2_FL_USER_MODIFIABLE 0x080380FF /* User modifiable flags */
+#else
#define EXT2_FL_USER_VISIBLE 0x0003DFFF /* User visible flags */
#define EXT2_FL_USER_MODIFIABLE 0x000380FF /* User modifiable flags */
+#endif
/*
* ioctl commands
diff -ur linux-2.6.9-final-vs1.9.3-rc3.orig/include/linux/ext3_fs.h linux-2.6.9-final-vs1.9.3-rc3/include/linux/ext3_fs.h
--- linux-2.6.9-final-vs1.9.3-rc3.orig/include/linux/ext3_fs.h 2004-10-18 17:41:27.000000000 +1300
+++ linux-2.6.9-final-vs1.9.3-rc3/include/linux/ext3_fs.h 2004-10-18 17:46:17.000000000 +1300
@@ -189,8 +189,13 @@
#define EXT3_IUNLINK_FL 0x08000000 /* Immutable unlink */
#define EXT3_RESERVED_FL 0x80000000 /* reserved for ext3 lib */
+#ifdef CONFIG_VSERVER_LEGACY
+#define EXT3_FL_USER_VISIBLE 0x0803DFFF /* User visible flags */
+#define EXT3_FL_USER_MODIFIABLE 0x080380FF /* User modifiable flags */
+#else
#define EXT3_FL_USER_VISIBLE 0x0003DFFF /* User visible flags */
#define EXT3_FL_USER_MODIFIABLE 0x000380FF /* User modifiable flags */
+#endif
/*
* Inode dynamic state flags
Only in linux-2.6.9-final-vs1.9.3-rc3.orig/include/linux: _fs.tar
diff -ur linux-2.6.9-final-vs1.9.3-rc3.orig/include/linux/reiserfs_fs.h linux-2.6.9-final-vs1.9.3-rc3/include/linux/reiserfs_fs.h
--- linux-2.6.9-final-vs1.9.3-rc3.orig/include/linux/reiserfs_fs.h 2004-10-18 17:41:27.000000000 +1300
+++ linux-2.6.9-final-vs1.9.3-rc3/include/linux/reiserfs_fs.h 2004-10-18 17:46:32.000000000 +1300
@@ -892,8 +892,13 @@
#define REISERFS_BARRIER_FL (EXT2_BARRIER_FL >> 16)
#define REISERFS_IUNLINK_FL (EXT2_IUNLINK_FL >> 16)
+#ifdef CONFIG_VSERVER_LEGACY
+#define REISERFS_FL_USER_VISIBLE (REISERFS_IUNLINK_FL|0x80FF)
+#define REISERFS_FL_USER_MODIFYABLE (REISERFS_IUNLINK_FL|0x80FF)
+#else
#define REISERFS_FL_USER_VISIBLE 0x80FF
#define REISERFS_FL_USER_MODIFYABLE 0x80FF
+#endif
/* persistent flags that file inherits from the parent directory */
#define REISERFS_INHERIT_MASK ( REISERFS_IMMUTABLE_FL | \
_______________________________________________
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver