[Vserver] [parisc ] latest 2.6.16-rc4-vs2.1.1-rc8-pa1 test with kernel up 32bit
Hello list, Here are the latest test: Linux patst007 2.6.16-rc4-vs2.1.1-rc8-pa1-d32up #7 Wed Feb 22 19:31:44 CET 2006 parisc GNU/Linux Linux-VServer Test [V0.15] Copyright (C) 2003-2006 H.Poetzl chcontext is working. chbind is working. Linux 2.6.16-rc4-vs2.1.1-rc8-pa1-d32up #7 Wed Feb 22 19:31:44 CET 2006 parisc Ea 0.30.210 263/fallback (S*) v13,net VCI: 0002:0001 263 03000116 (TbLgnP) --- [000]# succeeded. [001]# succeeded. [011]# succeeded. [031]# succeeded. [101]# succeeded. [102]# succeeded. [201]# succeeded. [202]# succeeded. --- [L01]# succeeded. [D01]# succeeded. [L02]# succeeded. [D02]# succeeded. [L03]# succeeded. [D03]# succeeded. [L11]# succeeded. [D11]# succeeded. [L12]# succeeded. [D12]# succeeded. [L21]# succeeded. [D21]# succeeded. [L22]# succeeded. [D22]# succeeded. [L31]# succeeded. [D31]# succeeded. Linux-VServer FS Test [V0.12] Copyright (C) 2005-2006 H.Poetzl Linux 2.6.16-rc4-vs2.1.1-rc8-pa1-d32up parisc/0.30.210 VCI: 0002:0001 263 03000116 (ugid24) --- testing ext2 filesystem ... [000]. (ext2 format) xid related tests ... [001]. [002]. [011]. [012]. [014]. [015]. [019]. [020]. [021]. [022]. [023]. [024]. [025]. [026]. [027]. [028]. [033]. [034]. [035]. [037]. xattr related tests ... [101]. [102]. [103]. [104]. [106]. [108]. [109]. [112]. [113]. [114]. [115]. [116]. [117]. [118]. [119]. [121]. [122]. [123]. [124]. [199]. --- testing ext3 filesystem ... [000]. (ext3 format) xid related tests ... [001]. [002]. [011]. [012]. [014]. [015]. [019]. [020]. [021]. [022]. [023]. [024]. [025]. [026]. [027]. [028]. [033]. [034]. [035]. [037]. xattr related tests ... [101]. [102]. [103]. [104]. [106]. [108]. [109]. [112]. [113]. [114]. [115]. [116]. [117]. [118]. [119]. [121]. [122]. [123]. [124]. [199]. --- testing xfs filesystem ... [000]. (xfs format) xid related tests ... [001]. [002]. [011]. [012]. [014]. [015]. [019]. [020]. [021]. [022]. [023]. [024]. [025]. [026]. [027]. [028]. [033]. [034]. [035]. [037]. xattr related tests ... [101]. [102]. [103]. [104]. [106]. [108]. [109]. [112]. [113]. [114]. [115]. [116]. [117]. [118]. [119]. [121]. [122]. [123]. [124]. [199]. --- testing reiser filesystem ... [000]. (reiserfs format) xid related tests ... [001]. [002]. [011]. [012]. [014]. [015]. [019]. [020]. [021]. [022]. [023]. [024]. [025]. [026]. [027]. [028]. [033]. [034]. [035]. [037]. xattr related tests ... [101]. [102]. [103]. [104]. [106]. [108]. [109]. [112]. [113]. [114]. [115]. [116]. [117]. [118]. [119]. [121]. [122]. [123]. [124]. [199]. --- testing jfs filesystem ... [000]. (jfs format) xid related tests ... [001]. [002]. [011]. [012]. [014]. [015]. [019]. [020]. [021]. [022]. [023]. [024]. [025]. [026]. [027]. [028]. [033]. [034]. [035]. [037]. xattr related tests ... [101]. [102]. [103]. [104]. [106]. [108]. [109]. [112]. [113]. [114]. [115]. [116]. [117]. [118]. [119]. [121]. [122]. [123]. [124]. [199]. Hth, Joel PS: ongoing for patch-2.6.16-rc4-vs2.1.1-rc9.diff test ;-) --- A free anti-spam and anti-virus filter on all Scarlet mailboxes More info on http://www.scarlet.be/ ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] little patch big impact ;)
Dear list, this little patch will fix the problem with redurecap, where you can not specify extra capabilities to reduce using --cap. best regards, fu ke --- util-vserver-0.30.210/src/reducecap.c 2006-01-22 20:31:53.0 +0100 +++ util-vserver-0.30.210/src/reducecap.c.patched 2006-02-23 10:27:41.0 +0100 @@ -216,7 +216,7 @@ getCap(char const *cap) { int bit = vc_text2cap(cap); - if (bit!=0) { + if (bit0) { WRITE_MSG(2, Unknown capability '); WRITE_STR(2, optarg); WRITE_MSG(2, '; try '--help' for more information\n); ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] New project with vserver documentation (In spanish)
muy interesante hermano, puedo ayudarte, aunque con el tiempo que me queda... pero bueno.. no importa ;)On 2/21/06, Daniel Ortiz [EMAIL PROTECTED] wrote:HiI started a new proyect named LinuxParanoico.CL (actually inwww.minitruck.cl, when i have money i will move the site towww.linuxparanoico.cl, this month), the project goals is create, elaborate and find information and documentation about the GNU/Linuxsecurity issues .in this moment a complete documentation about the vserver-project is inprogress, we want to create a fully tested and completed guide about vservers in spanish (debian sarge based), rigth now the documentationabout vservers include (all in spanish):1.- spanish guide to recompile the kernel with the vserver patch2.- networking basic configuration 3.- How move the base-directories4.- host services configuration (ssh, apache,etc)5.- Most used vservers commands6.- networking advanced configuration (in progress)7.- Postinstalation configutation of the debian sarge vservers 8.- Mount directories in vservers9.- How install new vservers (from scrath an from new vserver) and howcopy vservers and respald them.Inthe future we want cover all the features about vserver, like vserver and grsecurity, install another distros, tested configurations, VirtualHostings guides, etcif you want link the page in the vserver oficial site absolutely noproblem, but keep in mind that the project is in www.minitruck.cl and inthe next week will be moved to www.linuxparanoico.clbyeDanielzaterio___ Vserver mailing listVserver@list.linux-vserver.orghttp://list.linux-vserver.org/mailman/listinfo/vserver -- Jairo Enrique Serrano CastañedaIngeniero de Sistemas UTBT - http://www.jsnat.com - http://savio.unitecnologica.edu.coC - http://www.drupal.org.es - http://www.champetux.org ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
RE: [Vserver] New project with vserver documentation (In spanish)
Cuando quieras puedes publicar tu documentación, absolutamente bienvenida es tu ayuda, la idea es publicar info testeadayo ahora estoy tratando de hacer funcionar grsec+vserver y espero pronto publicar esta info..es español saludos De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Jairo Enrique Serrano Castañeda Enviado el: Jueves, 23 de Febrero de 2006 11:44 Para: vserver@list.linux-vserver.org Asunto: Re: [Vserver] New project with vserver documentation (In spanish) muy interesante hermano, puedo ayudarte, aunque con el tiempo que me queda... pero bueno.. no importa ;) On 2/21/06, Daniel Ortiz [EMAIL PROTECTED] wrote: Hi I started a new proyect named LinuxParanoico.CL (actually in www.minitruck.cl, when i have money i will move the site to www.linuxparanoico.cl, this month), the project goals is create, elaborate and find information and documentation about the GNU/Linux security issues . in this moment a complete documentation about the vserver-project is in progress, we want to create a fully tested and completed guide about vservers in spanish (debian sarge based), rigth now the documentation about vservers include (all in spanish): 1.- spanish guide to recompile the kernel with the vserver patch 2.- networking basic configuration 3.- How move the base-directories 4.- host services configuration (ssh, apache,etc) 5.- Most used vservers commands 6.- networking advanced configuration (in progress) 7.- Postinstalation configutation of the debian sarge vservers 8.- Mount directories in vservers 9.- How install new vservers (from scrath an from new vserver) and how copy vservers and respald them. Inthe future we want cover all the features about vserver, like vserver and grsecurity, install another distros, tested configurations, Virtual Hostings guides, etc if you want link the page in the vserver oficial site absolutely no problem, but keep in mind that the project is in www.minitruck.cl and in the next week will be moved to www.linuxparanoico.cl bye Daniel zaterio ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver -- Jairo Enrique Serrano Castañeda Ingeniero de Sistemas UTB T - http://www.jsnat.com - http://savio.unitecnologica.edu.co C - http://www.drupal.org.es - http://www.champetux.org ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] New project with vserver documentation (In spanish)
On Thu, Feb 23, 2006 at 02:02:50PM -0300, Daniel Ortiz wrote: Cuando quieras puedes publicar tu documentación, absolutamente bienvenida es tu ayuda, la idea es publicar info testeada yo ahora estoy tratando de hacer funcionar grsec+vserver y espero pronto publicar esta info..es español sorry, folks, but the channel _and_ ML language is english, so either have your own chat/ML somewhere or stick to that language ... TIA, Herbert saludos _ De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Jairo Enrique Serrano Castañeda Enviado el: Jueves, 23 de Febrero de 2006 11:44 Para: vserver@list.linux-vserver.org Asunto: Re: [Vserver] New project with vserver documentation (In spanish) muy interesante hermano, puedo ayudarte, aunque con el tiempo que me queda... pero bueno.. no importa ;) On 2/21/06, Daniel Ortiz [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi I started a new proyect named LinuxParanoico.CL (actually in www.minitruck.cl , when i have money i will move the site to www.linuxparanoico.cl, this month), the project goals is create, elaborate and find information and documentation about the GNU/Linux security issues . in this moment a complete documentation about the vserver-project is in progress, we want to create a fully tested and completed guide about vservers in spanish (debian sarge based), rigth now the documentation about vservers include (all in spanish): 1.- spanish guide to recompile the kernel with the vserver patch 2.- networking basic configuration 3.- How move the base-directories 4.- host services configuration (ssh, apache,etc) 5.- Most used vservers commands 6.- networking advanced configuration (in progress) 7.- Postinstalation configutation of the debian sarge vservers 8.- Mount directories in vservers 9.- How install new vservers (from scrath an from new vserver) and how copy vservers and respald them. Inthe future we want cover all the features about vserver, like vserver and grsecurity, install another distros, tested configurations, Virtual Hostings guides, etc if you want link the page in the vserver oficial site absolutely no problem, but keep in mind that the project is in www.minitruck.cl and in the next week will be moved to www.linuxparanoico.cl bye Daniel zaterio ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver -- Jairo Enrique Serrano Castañeda Ingeniero de Sistemas UTB T - http://www.jsnat.com - http://savio.unitecnologica.edu.co C - http://www.drupal.org.es - http://www.champetux.org ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] [PATCH 1/5] [fs] BME: allow mount flags on loopback mounts
Add an extra parameter to the do_loopback function that sets up a bind mount, that allows the value of vfsmount.mnt_flags to be set. -- Sam Vilain, Catalyst IT (NZ) Ltd. http://www.catalyst.net.nz/ phone: +64 4 499 2267PGP ID: 0x66B25843 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] [PATCH 0/5] Bind Mount Extensions
This patchset allows per-VFS mount options, such as noatime, nodiratime, and in partitular, read-only. ie, `mount -o ro --bind` can work with this patch. This is the invention of Herbert Pötzl. (sent to the Linux-VServer list as a 'dry run', and to give Herbert a chance to veto/comment) -- Sam Vilain, Catalyst IT (NZ) Ltd. http://www.catalyst.net.nz/ phone: +64 4 499 2267PGP ID: 0x66B25843 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] [PATCH 2/5] [fs] BME: add MNT_RDONLY flag
Add an extra flag to the mount flags (along with noatime, noexec, etc) for a read-only mount. Note that this will only affect bind mounts as normally this is performed through the inode. -- Sam Vilain, Catalyst IT (NZ) Ltd. http://www.catalyst.net.nz/ phone: +64 4 499 2267PGP ID: 0x66B25843 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] [PATCH 3/5] [fs] BME: refactor show_vfsmnt
New possibilities for flags makes this function change slightly. The opportunity is taken to simplify the function. -- Sam Vilain, Catalyst IT (NZ) Ltd. http://www.catalyst.net.nz/ phone: +64 4 499 2267PGP ID: 0x66B25843 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] [PATCH 4/5] [fs] BME: vfs functions must pass mount as well as inode
In order to have a file that is accessed through the same inode have different permissions, VFS functions must pass the mount structure. -- Sam Vilain, Catalyst IT (NZ) Ltd. http://www.catalyst.net.nz/ phone: +64 4 499 2267PGP ID: 0x66B25843 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] [PATCH 5/5] [fs] BME: fix consistency of IS_RDONLY
The IS_RDONLY macro is defined inconsistently. -- Sam Vilain, Catalyst IT (NZ) Ltd. http://www.catalyst.net.nz/ phone: +64 4 499 2267PGP ID: 0x66B25843 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] [PATCH 1/5] [fs] BME: allow mount flags on loopback mounts
Sam Vilain wrote: Add an extra parameter to the do_loopback function that sets up a bind mount, that allows the value of vfsmount.mnt_flags to be set. Wohoo! no patch ... go stgit :) ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] [PATCH 0/5] Bind Mount Extensions
This patchset allows per-VFS mount options, such as noatime, nodiratime, and in partitular, read-only. ie, `mount -o ro --bind` can work with this patch. This is the invention of Herbert Pötzl. (sent to the Linux-VServer list as a 'dry run', and to give Herbert a chance to veto/comment) --- Sam Vilain, Catalyst IT (NZ) Ltd. http://www.catalyst.net.nz/ phone: +64 4 499 2267PGP ID: 0x66B25843 ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] [PATCH 2/5] [fs] BME: add MNT_RDONLY flag
Add an extra flag to the mount flags (along with noatime, noexec, etc) for a read-only mount. Note that this will only affect bind mounts as normally this is performed through the inode. Signed-off-by: Sam Vilain [EMAIL PROTECTED] --- fs/namespace.c|2 ++ include/linux/mount.h |3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index 1094e54..b12ea35 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -1289,6 +1289,8 @@ long do_mount(char *dev_name, char *dir_ ((char *)data_page)[PAGE_SIZE - 1] = 0; /* Separate the per-mountpoint flags */ + if (flags MS_RDONLY) + mnt_flags |= MNT_RDONLY; if (flags MS_NOSUID) mnt_flags |= MNT_NOSUID; if (flags MS_NODEV) diff --git a/include/linux/mount.h b/include/linux/mount.h index b7472ae..c485c2b 100644 --- a/include/linux/mount.h +++ b/include/linux/mount.h @@ -22,6 +22,9 @@ #define MNT_NOEXEC 0x04 #define MNT_NOATIME0x08 #define MNT_NODIRATIME 0x10 +#define MNT_RDONLY 0x20 + +#define MNT_IS_RDONLY(m) ((m) ((m)-mnt_flags MNT_RDONLY)) #define MNT_SHARED 0x1000 /* if the vfsmount is a shared mount */ #define MNT_UNBINDABLE 0x2000 /* if the vfsmount is a unbindable mount */ ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] [PATCH 1/5] [fs] BME: allow mount flags on loopback mounts
Add an extra parameter to the do_loopback function that sets up a bind mount, that allows the value of vfsmount.mnt_flags to be set. Signed-off-by: Sam Vilain [EMAIL PROTECTED] --- fs/namespace.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index 058a448..1094e54 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -861,11 +861,13 @@ static int do_change_type(struct nameida /* * do loopback mount. */ -static int do_loopback(struct nameidata *nd, char *old_name, int recurse) +static int do_loopback(struct nameidata *nd, char *old_name, + unsigned long flags, int mnt_flags) { struct nameidata old_nd; struct vfsmount *mnt = NULL; int err = mount_is_safe(nd); + int recurse = flags MS_REC; if (err) return err; if (!old_name || !*old_name) @@ -891,6 +893,8 @@ static int do_loopback(struct nameidata if (!mnt) goto out; + mnt-mnt_flags = mnt_flags; + err = graft_tree(mnt, nd); if (err) { LIST_HEAD(umount_list); @@ -1312,7 +1316,7 @@ long do_mount(char *dev_name, char *dir_ retval = do_remount(nd, flags ~MS_REMOUNT, mnt_flags, data_page); else if (flags MS_BIND) - retval = do_loopback(nd, dev_name, flags MS_REC); + retval = do_loopback(nd, dev_name, flags, mnt_flags); else if (flags (MS_SHARED | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) retval = do_change_type(nd, flags); else if (flags MS_MOVE) ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] [PATCH 5/5] [fs] BME: fix consistency of IS_RDONLY
The IS_RDONLY macro is defined inconsistently. Signed-off-by: Sam Vilain [EMAIL PROTECTED] --- include/linux/fs.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/fs.h b/include/linux/fs.h index 250b002..3000655 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -150,7 +150,7 @@ extern int dir_notify_enable; */ #define __IS_FLG(inode,flg) ((inode)-i_sb-s_flags (flg)) -#define IS_RDONLY(inode) ((inode)-i_sb-s_flags MS_RDONLY) +#define IS_RDONLY(inode) __IS_FLG(inode, MS_RDONLY) #define IS_SYNC(inode) (__IS_FLG(inode, MS_SYNCHRONOUS) || \ ((inode)-i_flags S_SYNC)) #define IS_DIRSYNC(inode) (__IS_FLG(inode, MS_SYNCHRONOUS|MS_DIRSYNC) || \ ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] [PATCH 4/5] [fs] BME: vfs functions must pass mount as well as inode
In order to have a file that is accessed through the same inode have different permissions, VFS functions must pass the mount structure. Signed-off-by: Sam Vilain [EMAIL PROTECTED] --- arch/sparc64/solaris/fs.c |4 +-- fs/ext2/ioctl.c |7 +++-- fs/ext3/ioctl.c | 16 +++--- fs/hfsplus/ioctl.c|3 +- fs/namei.c| 69 +++-- fs/nfs/dir.c |3 +- fs/nfsd/nfs4recover.c |6 ++-- fs/nfsd/vfs.c | 19 +++- fs/open.c | 25 fs/reiserfs/ioctl.c |7 +++-- fs/reiserfs/xattr.c |3 +- fs/xattr.c| 23 ++- include/linux/fs.h| 12 ipc/mqueue.c |2 + net/unix/af_unix.c|2 + 15 files changed, 121 insertions(+), 80 deletions(-) diff --git a/arch/sparc64/solaris/fs.c b/arch/sparc64/solaris/fs.c index 4885ca6..612477d 100644 --- a/arch/sparc64/solaris/fs.c +++ b/arch/sparc64/solaris/fs.c @@ -363,7 +363,7 @@ static int report_statvfs(struct vfsmoun int j = strlen (p); if (j 15) j = 15; - if (IS_RDONLY(inode)) i = 1; + if (IS_RDONLY(inode) || MNT_IS_RDONLY(mnt)) i = 1; if (mnt-mnt_flags MNT_NOSUID) i |= 2; if (!sysv_valid_dev(inode-i_sb-s_dev)) return -EOVERFLOW; @@ -399,7 +399,7 @@ static int report_statvfs64(struct vfsmo int j = strlen (p); if (j 15) j = 15; - if (IS_RDONLY(inode)) i = 1; + if (IS_RDONLY(inode) || MNT_IS_RDONLY(mnt)) i = 1; if (mnt-mnt_flags MNT_NOSUID) i |= 2; if (!sysv_valid_dev(inode-i_sb-s_dev)) return -EOVERFLOW; diff --git a/fs/ext2/ioctl.c b/fs/ext2/ioctl.c index 3ca9afd..8f1c64a 100644 --- a/fs/ext2/ioctl.c +++ b/fs/ext2/ioctl.c @@ -11,6 +11,7 @@ #include linux/capability.h #include linux/time.h #include linux/sched.h +#include linux/mount.h #include asm/current.h #include asm/uaccess.h @@ -30,7 +31,8 @@ int ext2_ioctl (struct inode * inode, st case EXT2_IOC_SETFLAGS: { unsigned int oldflags; - if (IS_RDONLY(inode)) + if (IS_RDONLY(inode) || + (filp MNT_IS_RDONLY(filp-f_vfsmnt))) return -EROFS; if ((current-fsuid != inode-i_uid) !capable(CAP_FOWNER)) @@ -69,7 +71,8 @@ int ext2_ioctl (struct inode * inode, st case EXT2_IOC_SETVERSION: if ((current-fsuid != inode-i_uid) !capable(CAP_FOWNER)) return -EPERM; - if (IS_RDONLY(inode)) + if (IS_RDONLY(inode) || + (filp MNT_IS_RDONLY(filp-f_vfsmnt))) return -EROFS; if (get_user(inode-i_generation, (int __user *) arg)) return -EFAULT; diff --git a/fs/ext3/ioctl.c b/fs/ext3/ioctl.c index 556cd55..2b83f7e 100644 --- a/fs/ext3/ioctl.c +++ b/fs/ext3/ioctl.c @@ -8,6 +8,7 @@ */ #include linux/fs.h +#include linux/mount.h #include linux/jbd.h #include linux/capability.h #include linux/ext3_fs.h @@ -36,7 +37,8 @@ int ext3_ioctl (struct inode * inode, st unsigned int oldflags; unsigned int jflag; - if (IS_RDONLY(inode)) + if (IS_RDONLY(inode) || + (filp MNT_IS_RDONLY(filp-f_vfsmnt))) return -EROFS; if ((current-fsuid != inode-i_uid) !capable(CAP_FOWNER)) @@ -112,7 +114,8 @@ flags_err: if ((current-fsuid != inode-i_uid) !capable(CAP_FOWNER)) return -EPERM; - if (IS_RDONLY(inode)) + if (IS_RDONLY(inode) || + (filp MNT_IS_RDONLY(filp-f_vfsmnt))) return -EROFS; if (get_user(generation, (int __user *) arg)) return -EFAULT; @@ -166,7 +169,8 @@ flags_err: if (!test_opt(inode-i_sb, RESERVATION) ||!S_ISREG(inode-i_mode)) return -ENOTTY; - if (IS_RDONLY(inode)) + if (IS_RDONLY(inode) || + (filp MNT_IS_RDONLY(filp-f_vfsmnt))) return -EROFS; if ((current-fsuid != inode-i_uid) !capable(CAP_FOWNER)) @@ -201,7 +205,8 @@ flags_err: if (!capable(CAP_SYS_RESOURCE)) return -EPERM; - if (IS_RDONLY(inode)) + if (IS_RDONLY(inode) || + (filp MNT_IS_RDONLY(filp-f_vfsmnt))) return -EROFS; if (get_user(n_blocks_count, (__u32 __user *)arg)) @@ -222,7 +227,8 @@ flags_err: if
[Vserver] Patch spam
Sorry about that, guys. Ok, other than the minor issue with encoding, I think the first optimised-for-inclusion patch looks good to go. I haven't tested it yet ;), nor double-checked that all the places where BME should touch are touched, but feedback on the patch submission style and the patch itself are welcome. Sam. ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] [parisc-linux] 2.6.16-rc4-vs2.1.1-rc9 test (smp kernel success too)
Hello, Yet another test ;) First, it's against latest vs2.1.1-rc9 for rc4 kernel 2.6.16. Second, trust me it's always test fine with 32 bit up build of this kernel but the new is that it's also fine with the smp build (it's the first time I had the oportunity to run this test): # ./ReportVserverTest Linux patst007 2.6.16-rc4-vs2.1.1-rc9-pa1-d32mp #1 SMP Thu Feb 23 20:34:05 CET 2006 parisc GNU/Linux Linux-VServer Test [V0.15] Copyright (C) 2003-2006 H.Poetzl chcontext is working. chbind is working. Linux 2.6.16-rc4-vs2.1.1-rc9-pa1-d32mp #1 SMP Thu Feb 23 20:34:05 CET 2006 parisc Ea 0.30.210 263/fallback (S*) v13,net VCI: 0002:0001 263 03000116 (TbLgnP) --- [000]# succeeded. [001]# succeeded. [011]# succeeded. [031]# succeeded. [101]# succeeded. [102]# succeeded. [201]# succeeded. [202]# succeeded. --- [L01]# succeeded. [D01]# succeeded. [L02]# succeeded. [D02]# succeeded. [L03]# succeeded. [D03]# succeeded. [L11]# succeeded. [D11]# succeeded. [L12]# succeeded. [D12]# succeeded. [L21]# succeeded. [D21]# succeeded. [L22]# succeeded. [D22]# succeeded. [L31]# succeeded. [D31]# succeeded. Linux-VServer FS Test [V0.12] Copyright (C) 2005-2006 H.Poetzl Linux 2.6.16-rc4-vs2.1.1-rc9-pa1-d32mp parisc/0.30.210 VCI: 0002:0001 263 03000116 (ugid24) --- testing ext2 filesystem ... [000]. (ext2 format) xid related tests ... [001]. [002]. [011]. [012]. [014]. [015]. [019]. [020]. [021]. [022]. [023]. [024]. [025]. [026]. [027]. [028]. [033]. [034]. [035]. [037]. xattr related tests ... [101]. [102]. [103]. [104]. [106]. [108]. [109]. [112]. [113]. [114]. [115]. [116]. [117]. [118]. [119]. [121]. [122]. [123]. [124]. [199]. --- testing ext3 filesystem ... [000]. (ext3 format) xid related tests ... [001]. [002]. [011]. [012]. [014]. [015]. [019]. [020]. [021]. [022]. [023]. [024]. [025]. [026]. [027]. [028]. [033]. [034]. [035]. [037]. xattr related tests ... [101]. [102]. [103]. [104]. [106]. [108]. [109]. [112]. [113]. [114]. [115]. [116]. [117]. [118]. [119]. [121]. [122]. [123]. [124]. [199]. --- testing xfs filesystem ... [000]. (xfs format) xid related tests ... [001]. [002]. [011]. [012]. [014]. [015]. [019]. [020]. [021]. [022]. [023]. [024]. [025]. [026]. [027]. [028]. [033]. [034]. [035]. [037]. xattr related tests ... [101]. [102]. [103]. [104]. [106]. [108]. [109]. [112]. [113]. [114]. [115]. [116]. [117]. [118]. [119]. [121]. [122]. [123]. [124]. [199]. --- testing reiser filesystem ... [000]. (reiserfs format) xid related tests ... [001]. [002]. [011]. [012]. [014]. [015]. [019]. [020]. [021]. [022]. [023]. [024]. [025]. [026]. [027]. [028]. [033]. [034]. [035]. [037]. xattr related tests ... [101]. [102]. [103]. [104]. [106]. [108]. [109]. [112]. [113]. [114]. [115]. [116]. [117]. [118]. [119]. [121]. [122]. [123]. [124]. [199]. --- testing jfs filesystem ... [000]. (jfs format) xid related tests ... [001]. [002]. [011]. [012]. [014]. [015]. [019]. [020]. [021]. [022]. [023]. [024]. [025]. [026]. [027]. [028]. [033]. [034]. [035]. [037]. xattr related tests ... [101]. [102]. [103]. [104]. [106]. [108]. [109]. [112]. [113]. [114]. [115]. [116]. [117]. [118]. [119]. [121]. [122]. [123]. [124]. [199]. Hth, Joel PS: btw Herbert, as in general it seems to work fine on parisc-linux arch (at least 32bit build), I think that I will just continue to test new patches and just report in case of failure. What's your opinion? --- A free anti-spam and anti-virus filter on all Scarlet mailboxes More info on http://www.scarlet.be/ ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver