[00:00] JonB (~jon@129.142.112.33) joined #vserver. [00:28] pflanze (~chris@80.218.23.137) joined #vserver. [00:28] Hello. [00:29] Some time ago I've read somewhere that hard links can be used between vservers to share mem/disk. [00:29] And that with the help of chattr +i (?) it can be made secure. [00:29] somehow, yes ... [00:29] I've tried it out now and am confused that it doesn't prevent me to write to such files from inside a vserver. [00:30] Is it because I'm using reiserfs, or am I doing something wrong? [00:30] you are able to write to an immutable file? that is strange ... [00:31] pflanze: how do you "write" that file ? [00:31] root@ethlife-b vserver# lsattr kontro/fun [00:31] s--i---c------ kontro/fun [00:31] [root@nathan tmp]# touch x [00:31] [root@nathan tmp]# chattr +i x [00:31] [root@nathan tmp]# echo "test" >x [00:31] bash: x: Permission denied [00:31] root@ethlife-b vserver# echo fun >> kontro/fun [00:31] eh. [00:31] pflanze: you can unlink it (aka delete it) and then write a new file with the same name' [00:31] that was from outside the vserver. [00:32] if it doesn't work this way, either vserver breaks your permission scheme for reiserfs or reiserfs isn't sane ;) [00:32] root@ethlife-b-kontro /# cat fun [00:32] hello [00:32] root@ethlife-b-kontro /# echo world > fun [00:32] root@ethlife-b-kontro /# cat fun [00:32] world [00:32] that's from inside a vserver context. [00:32] s---i---c-------- fun [00:33] and outside? [00:33] same thing. [00:33] i.e. the i bit is preserved, but doesn't seem to have any effect. [00:33] well then the perm scheme of reiserfs is broken, either by Hans Reiser or by the vserver patches ... [00:34] let me have a look at the vserver code in this regard, what kernel/patches do you use? [00:34] 2.4.22-vs1.00 [00:34] only vserver [00:34] no other patches. [00:34] stock 2.4.19 has that problem too [00:34] okay, give me a minute .. [00:34] # echo hello >fun [00:34] btw I've just realized yep. [00:34] # chattr +i fun [00:34] # echo test >fun [00:34] # cat fun [00:34] test [00:35] hmm, reiser too? [00:35] yes. [00:35] yup [00:35] (me on another machine w/o vserver) [00:35] hmm, could anybody in the meantime check if this is true for reiser _without_ vserver too? [00:35] Bertl: I ment stock 2.4.19 without vserver [00:35] oops ... [00:35] Bertl: me too, on this other machine. [00:35] so it is broken without vserver [00:36] yep, sorry for confusion. [00:36] ok, hmm .. so I am supposed to mend it then? ;) [00:36] would be genious! [00:37] the flags are reported ... and change if you do chattr +/- stuff, yes? [00:37] # lsattr fun [00:37] ---i---------- fun [00:37] I find it funny that the flag is ther but the linux vfs layer doesn't honor it - looks like the fs code itself has to check it. [00:37] Bertl: yes. [00:37] can turn it on/off. [00:38] http://www.paul.sladen.org/vserver/archives/200111/0032.html [00:38] hmm, there's that for 2.4.15 [00:39] but the state of affairs has already improved, current reiserfs *can* store those flags - they just don't seem to be honoured. [00:40] yeah [00:42] Bertl: do you take that into your hands, or should I write to lkml? [00:43] you should probably write reiserfs-list@namesys.com or reiserfs-dev@namesys.com [00:44] as those are the addresses listed in MAINTAINERS for reiserfs [00:44] hmm, you are not using noattr flag on mount, right? [00:45] I am not using it [00:45] Bertl: no. Here's what /proc/mounts says: /dev/md13 /mnt/md13 reiserfs rw 0 0 [00:45] (and fstab: /dev/md13 /mnt/md13 reiserfs defaults) [01:00] Bertl_ (~herbert@212.16.62.51) joined #vserver. [01:00] Bertl (~herbert@212.16.62.51) left irc: Read error: Connection reset by peer [01:09] hmm, am I still here? [01:10] 05:00 ## Signoff #vserver: Bertl (Read error: Connection reset by peer) [01:10] that one went away [01:16] Bertl (~herbert@MAIL.13thfloor.at) joined #vserver. [01:16] [Bertl] (~duke@PLAABEN.0804.VIP.AT) joined #vserver. [01:17] <[Bertl]> hmm anybody else experiencing enourmous lag? [01:18] Bertl_ (~herbert@212.16.62.51) left irc: Ping timeout: 480 seconds [01:18] nope [01:18] ## CTCP PING reply from [Bertl]: 0.522436 seconds [01:19] <[Bertl]> yes, but this is a different route ;) [01:19] heh [01:19] a good one :) [01:20] <[Bertl]> at the moment, yes ;) [01:22] Bertl (~herbert@MAIL.13thfloor.at) left irc: Read error: Connection reset by peer [01:22] <[Bertl]> di one of you try the 'attrs' mount option? [01:23] same results [01:23] reiserfs: cannot support attributes until flag is set in super-block [01:23] heh [01:28] <[Bertl]> it seems that there is a special flag, which probably can be set via some tools ... [01:28] yeah [01:29] <[Bertl]> now someone should look amongh the reiser utilities/tools which tool this could be ... ;) [01:37] infowolfe (infowolfe@68.33.215.209) left irc: Remote host closed the connection [01:46] <[Bertl]> hmm pflanze? [01:47] yes? [01:47] Action: pflanze reading [01:47] hm. [01:47] <[Bertl]> any new ideas regarding the 'attrib' flag stuff? [01:48] <[Bertl]> it seems that 'noattr' is default on reiser :( [01:48] looking at debian reiserfsprogs [01:50] I don't see any such tool. [01:51] I'll just ask on #kernelnewbies. [01:51] <[Bertl]> but you get the same message on mount? [01:52] <[Bertl]> or did I misunderstand something .. my connection was gone ... [01:52] hm, I've just read what MrBawb said. [01:53] MrBawb: I've never seen a 'cannot support attributes' message from reiserfs - where did you see that? [01:53] <[Bertl]> because I would suspect that a mount -o attrib,rw /dev/x /dev/y should work ... [01:53] when I used mount -o remount,attr /[mountpoint] [01:53] ah [01:53] <[Bertl]> forget about the remount ... [01:56] hm - mount -o attr /dev/md8 /mnt/md8 [01:56] mount: wrong fs type, bad option, bad superbl.. [01:56] <[Bertl]> 'attrib' it is ... [01:56] same thing. [01:56] JonB (~jon@129.142.112.33) left irc: Quit: Client exiting [01:56] maybe my mount command is too old. [01:57] <[Bertl]> nope, my fault 'attrs' it is for reiser ... [01:57] oh [01:57] ah. attrs works. [01:58] root@ethlife-b md8# chattr +i fun [01:58] root@ethlife-b md8# echo hallo > fun [01:58] bash: fun: Permission denied [01:58] yeah! [01:59] <[Bertl]> well, it all in the source ... now do this on Windoof! [01:59] :) [02:02] hm remount is not enough [02:02] <[Bertl]> thought so ... [02:02] <[Bertl]> this is very much like the tagctx option (from the implementation side) [02:03] what's this? [02:03] <[Bertl]> the context tagging for files ... [02:03] ah. there's a new vserver specific metadata for files? [02:04] <[Bertl]> it allows to track the files used/accessed by a context, which is required for quota and disk limits (per vserver) [02:04] <[Bertl]> there are 3 modes, 2 of them use the existing UID/GID to store that information ... the third adds new fields and only works on (ext2/ext3) [02:05] ah. so the first modes allow me to do quotas/limits even with reiser? [02:06] <[Bertl]> they should, but reiser isn't tested by me (yet) ... [02:06] cool. I'll check it out some time. [02:07] <[Bertl]> wait a week or so, I'll update them soon for the new releases ... [02:13] (Just to be sure: is it ok to just shut down my vserver instance, umount, mount -o attrs and vserver start?) [02:14] <[Bertl]> guess this should work ... I see no pitfall there ... [02:15] I just thought, hey if there are special infos in the files I've generated while playing... but this is reiser, so no special info anyway I guess. [02:16] <[Bertl]> probably the attributes are store but not enforced until now .. so you should scan with lsattr for 'misconfigured' files/dirs ... [02:21] umount: /mnt/md13: device is busy [02:21] lsof does not show any process with md13 in it's path. [02:21] fuser -vm /mnt/md13 [02:21] vserver 1 enter first? [02:21] <[Bertl]> what are your lsof options? [02:21] or how do I get ctx 1? [02:21] no, from the real server [02:22] lsof|grep md13 [02:22] <[Bertl]> try lsof +D /mnt/md13 [02:22] this takes forever [02:22] and lsof without any option should output md13 anyway, right?? [02:23] <[Bertl]> I see at least 5 cases which could cause this ... [02:23] <[Bertl]> - nfsd grabbed the device [02:23] no nfsd here [02:23] <[Bertl]> - some bash/tool is still in this path [02:23] would show up in lsof [02:23] AH [02:24] <[Bertl]> - you enabled quota or something similar on the device [02:24] other mounts,I silly! [02:24] <[Bertl]> - you mounted ontop of that ;) [02:24] <[Bertl]> and last but not least my favorite: a kernel bug ;) [02:24] no, no other mounts anymore. [02:24] looks like kernel bug then [02:24] ok going to reboot [02:25] <[Bertl]> well I personally doubt that this is the case ... but it's up to you ;) [02:25] no quota either [02:26] <[Bertl]> this is a vserver partition, right? [02:26] it's just a partition where I had a vserver running on, yes. [02:26] morning [02:27] <[Bertl]> okay just out of the blue try umount /mnt/md13/proc and /mnt/md13/dev/pts ... [02:27] the only vserver on this machine. [02:27] <[Bertl]> @kestrel morning! [02:27] hey herbert [02:27] too late, already rebooted. [02:27] but I did cat /proc/mounts|grep md13 and it didn't show anything else than the 'real' mount. [02:28] shit happens. [02:29] the machine doesn't come back up :/ [02:29] <[Bertl]> give it some time, probably file system checks ... [02:31] no joy. [02:33] <[Bertl]> hmm, that is bad ... did you change anything? [02:33] changed fstab with attrs, and at the same time did replace defaults with noatime. [02:34] maybe a typo. [02:34] one should not reboot a live server from home at midnight. [02:34] <[Bertl]> probably now sitting there with 'unknown mount option ... ' [02:35] <[Bertl]> now is the time to make yourself familiar with the concept of remote console and serial connections ... [02:35] yes, I wanted to do that for a long time already. [02:36] ok going to drive off there. [02:37] cu [02:37] pflanze (~chris@80.218.23.137) left irc: Quit: [x]chat [02:47] Bertl (~herbert@212.16.62.51) joined #vserver. [02:48] Action: Bertl kicks [Bertl] of the channel ... [02:48] [Bertl] (~duke@PLAABEN.0804.VIP.AT) left irc: Quit: [Bertl] has no reason [02:49] damn imposters ... 8-) [03:20] pflanze (~chris@ethlife-a.ethz.ch) joined #vserver. [03:23] ok machine up again; want to know what it was that prevented it from rebooting? [03:23] hmm, let me guess ... [03:23] but tell me what exactly you did ... [03:24] before I mean ... [03:24] one of the md devices was just mdadm'ed, and did not have an raid autodetect type in the partition table. [03:24] that was all. [03:24] fsck complained that it couldn't read the device. boot stopped. [03:24] and you entered it into the fstab ... [03:24] yes. [03:24] Without also changing the partition type. sigh. [03:25] okay .. been there done that, didn't bother to get the T-shirt ... [03:25] which t-shirt do you mean? [03:26] the 'added-a-non-auto-detect-md-device' t-shirt ... [03:26] hehe [03:26] I see. [03:26] Action: pflanze feels ashamed [03:27] Now to the other stuff: [03:27] rm fun isn't allowed anymore, which is ok. [03:27] shit happens, all the time, you just have to look at the good side ... (if you can find one) ... [03:27] :) [03:28] okay, so +i work as expected, right? [03:28] but I'm now wondering how vservers are supposed to do software upgrades? not being able to write to a file and replacing it is a different thing.. [03:28] simple, that is what Sam Vilain's ILI stuff is for ... [03:28] m [03:28] hm? [03:29] I remember having read about a script. [03:29] the magic is the Immutable Link inversion flag ... [03:29] ah. ok [03:29] there are special tools to set this flag, although not required ;) [03:30] guess the backup flag or something. [03:30] but basic idea is, you weaken the Immutable flag with that one ... [03:30] ok. [03:30] changes are not allowed as usual, but removal (unlink) is ... [03:31] basicall all package oriented distros and the majority of the tar/archive based do remove before they install ... on updates ... [03:31] jup [03:32] (or even better (would be to) write to tmp file and rename that over the current) [03:33] hmm, not a good idea, especially if /tmp is another partition ;) [03:33] but I'm missing the script that's going to find files that can be hard-linked-and-made-immutable. [03:33] tmp file in the same folder, of course. [03:33] what distro do you use on the host? [03:33] debian woody. [03:34] hmm, there is a tool for RPM packages ... and somebody started a project to do the unification for debian too ... [03:34] ah. [03:34] but I don't know where this one was lost ;) [03:35] how is it called on redhat? [03:35] basicall you could decide to unify some directories like /usr/bin etc ... [03:35] it's calle vunify ;) [03:35] s/calle/called/ [03:35] then it's not in debian. [03:35] because it doen't make much sense to read the non existing rpm database, right? [03:36] ah i see. [03:36] this tool relies on the information provided by the rpm packages themself ... [03:36] well I thought it was just guessing at the paths. [03:42] link-inversed immutable files can also still be linked or renamed, right? [03:42] s/or/and/ [03:43] hmm, well the naming is a directory operation, so yes, the link .. I guess no ... [03:45] That would probably be necessary for debian: [03:46] (maybe) [03:46] well, check it, if something is missing for debian, we can add it, if it makes sense ..;) [03:46] I'm seeing "-new" suffixes for all files that have been replaced but are still open, in /proc/pid/map, like /usr/X11R6/lib/libXext.so.6.4.dpkg-new [03:47] not 100% clear why. [03:47] Maybe some rename games. [03:47] well, doesn't matter. [03:48] But what does matter (and which I first thought of) is how the unify script securely places the files into the vserver filesystem. [03:48] If it has to put the files there before the +i flag, vservers have a chance to overwrite them! [04:03] of course it does this when the vserver is down ;) [04:05] ah. [04:05] there are too many issues when you try to update/reunify a running server ... [04:06] no others come to mind. could be that we are replacing a file that's been replaced after we read it. [04:07] but that's at least no security hole, just a very small breakage risk. [04:07] we could be replacing a file that is in use ... [04:07] but what's the problem with that? [04:07] package upgrades do that all the time.. [04:08] yeah, but from inside, without removing/adding priviledges ... [04:09] but as I said, try some approaches, show that they are secure/insecure and why ... then we talk about solutions ... [04:09] The algorithm I have in mind is: make immutable, check size+perms, if same, check md5 sum, if same, make hardlink. [04:09] did you try to hardlink an immutable file yet? [04:09] no that's why I asked above. [04:09] basically it should work, but never tried myself ... [04:09] ok. [04:10] I'm trying for some time to replace the whole immutable/ILI stuff by something smarter ... [04:10] btw I'm trying to unwrap an rpm file; maybe the script is downloadable elsewhere to make it easier? [04:10] you can get the tar.gz .. [04:11] it's on linux-vserver.org ... with the release ... [04:11] ah ok [04:11] both enricos util-vserver or jack's tools will contain it [04:20] What kind of smarter stuf do you want to do? copy-on-write? [04:21] well, I had that in mind, but this has too many side effects ... [04:21] but the following approach sounds reasonable: [04:21] and prolly not much use, since it's quite easily determinable which files may be immutable. [04:22] for quota and disk limit, we need the context tagging anyway, so why not use this information according to a simple rule ... [04:22] files 'owned' by the root context (0) and ... [04:22] having more than one link (unification) [04:23] and a immutable bit set (admin) [04:23] automatically get the linkage invert ;) [04:24] this way you lose a little option (creating immutable shared files among vserver, which can't be removed .. but who needs/wants that? [04:24] Well, the root server has a little changed semantics, too. [04:25] hmm depends, not necessarily ... [04:25] Maybe someone wants to create multilink immutable and non-inverted files. [04:25] for whatever reason:) [04:25] on the root server this can work as usual ... you lose the ILI feature there ... [04:25] ah. [04:26] ok then it doesn't sound that dangerous. [04:26] the problem with the ili stuff is, that it uses file flags assigned otherwise (in this case tail merge IIRC) and that IMHO _is_ bad ... [04:27] ok. [04:28] hmm thinking of it, this could on reiserfs result in funny things ;) [04:28] reiser has tail merging anyway or something like that [04:28] well it's disabled by default ... [04:29] ah no, wrong .. 'notail' is required to disable it ... [04:31] Did you write the vunify.cc prog? [04:31] no, I don't write C++ code ;) [04:32] that was jack (Jacques Gelinas) all blame/honors go to him ;) [04:32] ok. [04:32] looks kind of funny, not very lucent for me atm. I'll have to look into it another day. [04:33] Who was going to work on it for debian? [04:33] you have to search the archives ... (mailing list) [04:34] ok [04:54] Btw what does this mean?: [04:54] New security context is 3 [04:54] Kernel do not support chrootsafe(), using chroot() [04:54] (upon vserver enter) [04:54] this means that you use old tools ;) [04:55] ah. [04:55] hm, should I upgrade? security problem? [04:55] nope, the newer tool don't use it either, they just don't complain ... [04:56] ok. [04:57] you are still secure if you setup the 000 barrier on the vserver directory ... [04:57] huh? [04:58] well chroot() isn't safe per se ... [04:58] so vserver introduced a security enhancement, the 000 barrier ... [04:58] a directory with permission 000 can't be crossed from within a vserver ... [04:59] ah uh oh. [04:59] good to know I need that. [05:00] hrm, I guess it's on ever explanation page regarding vserver ... [05:00] well, you know now ... [05:00] Maybe I should read more again. [05:01] I read the paper about half a year ago. Then lately I suddenly needed vserver, so I just installed the debian package. [05:01] And in the debian docs nothing's written about the 000 barrier. [05:02] It even has a setup script that doesn't seem to check that. [05:02] I think the vserver projekt should offer a program that tries to break out the vserver in any possible known way, so admins can check if all's ok. [05:02] well, hopefully we get to integrating the chrootsafe() call soon ... [05:03] Kind of a test suite. [05:03] it's in enricos tools under tests ;) [05:03] ah. [05:03] another job well done, and so fast ;) [05:05] (Funny. 000 doesn't prevent a normal root user to enter it, read it, ...; wondering why chroot should be safe with it) [05:05] because vserver patches checks it ;) [05:06] ah. I almost thought that:) [05:06] try to work with it from ctx != 0 [05:08] serving (~serving@213.186.191.20) left irc: Ping timeout: 492 seconds [05:08] serving (~serving@213.186.191.20) joined #vserver. [05:09] you mean, I have to chmod 000 the directory *above* the individual vserver root dirs? [05:10] yes .. or the highest common directory ... [05:11] chmod 000 /var/lib/vserver, and /var/lib/vserver/{server1,server2,server} are u+rwx ? [05:12] yes .. this way it should work ... [05:12] basicall you do a chmod 000 /.. [05:13] because that is exactly where a chroot escape tries to go ... [05:13] ok, I see that d--------- 2 root root 96 16. Nov 22:00 /var/lib/vservers/ [05:13] the point is I made symlinks there to other places, which didn't have a 000 dir. [05:14] hmm, as I said, doing the above should be sufficient in any case ... symlink/mount/whatever ... [05:14] of course it should read chmod 000 /.. [05:14] I now 000'ed the dirs above my symlink targets as well, so fine [06:30] okay ... I go to sleep now .. have a nice whatever ... [06:30] Nick change: Bertl -> Bertl_zZ [07:23] Nick change: riel -> surriel [08:55] Simon (~sgarner@apollo.quattro.net.nz) joined #vserver. [09:33] Simon (~sgarner@apollo.quattro.net.nz) left irc: Quit: so long, and thanks for all the fish [11:46] pflanze (~chris@ethlife-a.ethz.ch) left irc: Ping timeout: 483 seconds [12:46] James (~James@ip68-96-180-27.lv.lv.cox.net) joined #vserver. [12:46] hello all? [12:47] James: Certainly hello. [12:48] Hiya Virt! [12:49] Im making progress with vserver... found out how to use newvserver tonight (had trouble creating) [12:49] Hm. RedHat? [12:49] yeah, 7.3 [12:50] found out about the right arrow in the block, by reading the script [12:50] now i just need to figure out all the ulimit tags, and ill be good to go. [12:51] I think, it'll be good if you correct documentation regarding 'right arrow'. [12:52] I will, when i get the rest figgured out (im writing up all my expiriences) [12:52] Action: virtuoso never used vservers on redhat though. :) [12:53] I just do as the boss tells me, Id prefer anything else. [12:54] Ive been looking into gentoo, since i got that email about RH dropping 7.3 [12:55] Look into debian also. A damn good thing. :) [12:56] so i hear, [12:56] hmmm, debian [12:57] if it's software packages aren't the newest and latest versions, how are bugs and patches handled? [12:58] i'm thinking between debian gentoo and rhel [12:58] Updates are made very often at least by security team. [12:58] Unstable branch of debian updates even too often. [12:59] Debian has ability for binary upgrades. Thats goal behind gentoo. [12:59] yuppers [13:00] hmm, got an error here, bbiaf [13:00] Hm? [13:00] it did not write a /etc/resolve.conf [13:01] like, say there's a bug in openssh, could be patched with the latest version, but the latest version isn't deemed to be stable enough for production, how is that handled? [13:02] zyong: Maintainer of the package applies the fixing patch to current stable and proposes an update. [13:02] Although situations may vary. [13:03] hmmm, so generally, debian packages do not neccessarily provide the latest releases but it's a sure thing that newest exploits and patches are being applied? [13:04] zyong: There's a policy stating that security updates must come in maximum 48 hours after vulnerability is announced. [13:05] maximum? sounds good [13:05] Packages in unstable branch are usually up to date. [13:07] hmmm, @ debian.org now [13:08] got a min? [13:08] who? [13:08] anyone [13:08] :) [13:09] i must have missed something about nameservers in vps... [13:09] i can ssh from vps02 to the real world, but cant resolve anything. anyone have a hint for me?? [13:12] resolve.conf? [13:12] Try tcpdump in 0 context. [13:12] wrote it myself [13:13] resolv.conf better, of course. :) [13:16] ok, it did not write the /etc/sysconfig/network-scripts/ifcfg-eth0 either [13:18] i guess its not supposed to [13:19] doesn't ifcfg-eth0 handle only ip and gateway info? [13:19] yeah [13:19] just saw that it ws missing [13:19] OH [13:19] lol [13:20] how well is commercial, the so called enterprise software, supported on debian? [13:21] bea weblogic only holds support for rhel [13:26] this ring a bell for anyone? [13:26] Can't set the ipv4 root (Invalid argument) [13:26] usr/sbin/vserver: ulimit: cannot modify max user processes limit: Invalid argument [13:29] James: Show your IPROOT and ULIMITs so we may probably tell... [13:29] say-out (~say@212.86.243.154) left irc: Read error: Connection reset by peer [13:29] say (~say@212.86.243.154) joined #vserver. [13:30] zyong: Commercial software is off of official debian, although there is plenty of unofficial repositories with almost everything. [13:30] zyong: Take a look at apt-get.org, for example. [13:30] i know, i read about that part [13:30] but does that mean that weblogic 'wun' compile on debian? [13:31] 'wun' - ? [13:31] won't [13:31] typo [13:32] Why wouldn't it compile? [13:33] haha i don't know. haven't tried any distros other than RH. [13:33] i just want to confirm that it will [13:33] Then it most likely will compile. :) [13:34] roger that [13:37] trying it again, with a rh73 full install [13:46] say-out (~say@212.86.243.154) joined #vserver. [13:46] say (~say@212.86.243.154) left irc: Read error: Connection reset by peer [13:59] serving (~serving@213.186.191.20) left irc: Ping timeout: 483 seconds [14:02] pflanze (~chris@129.132.19.124) joined #vserver. [14:28] James (~James@ip68-96-180-27.lv.lv.cox.net) left irc: Ping timeout: 480 seconds [15:51] serving (~serving@213.186.191.21) joined #vserver. [16:12] zyong (zyong@bb-203-125-7-187.singnet.com.sg) left irc: Read error: Connection reset by peer [17:23] Nick change: unriel -> riel [17:34] Nick change: Bertl_zZ -> Bertl [18:01] say (~say@212.86.243.154) joined #vserver. [18:01] say-out (~say@212.86.243.154) left irc: Read error: Connection reset by peer [18:02] hi say! [18:16] shuri (~ipv6@207.236.226.187) joined #vserver. [18:17] hi shuri! [18:17] hi [18:17] :P [18:17] ipv6 server is down... [18:17] :( [18:18] bad, really bad ... [18:18] lol [18:20] what tools i use with 1.1.3? [18:21] the ones on the same page as the patch ;) [18:21] actually util-vserver 0.24 or later ... [18:22] ok [18:23] compile time [18:52] so you are 'the' ipv6 guy, right? ;) [18:53] humm [18:53] maybe: [18:53] well, for sure you can explain me some basics ... [18:53] yes [18:54] okay, assume that I know ipv4 from a user/admin perspective and at the protocol level (ip(v4)) nothing else ... [18:55] ok [18:55] how/why would I switch to ipv6 for example ... [18:56] well you know that for now is Link encap:IPv6-in-IPv4 [18:56] so you got ipv4 and ipv6 [18:56] probably to tunnel ipv6 over ipv4 ... [18:56] yes [18:56] you got a suffix 48 with this [18:57] that mean a lot of ips [18:57] also [18:57] with ipv6 ... [18:57] yes [18:57] okay .. [18:57] for example [18:57] i got 3ffe:bc0:189:1::1/64 [18:58] okay, that is the first, please explain this notation ... [18:58] yes [18:58] obviously we don't write octets anymore :( [18:58] ; -------------------------------, [18:58] ; Your Network| Your prefix (48 bits) | [18:58] ; -------|-------|-------|------- [18:58] = 128 bits [18:59] so the network has 80 bits? [19:00] 1208925819614629174706176 networks???? [19:00] ipv6calc -r 3ffe:bc0:189:: [19:00] 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.9.8.1.0.0.c.b.0.e.f.f.3.ip6.int. [19:01] ;----------------------------------------, [19:01] ; network part /64 | Host part 64 bits | [19:01] ;--------------------|-------------------' [19:01] ; 3ffe:0bc0:0189:0001:0000:0000:0000:0001 [19:01] hmm, now I'm completely confused ... [19:01] hehe [19:02] 3ffe:bc0:189 is the suffix [19:02] like a subnet [19:02] hmm, I got 16 bit for myself, 48bit prefix and 64bit network then? [19:02] like 207.101..... [19:02] 64 bits for yourself [19:03] okay 127.101.0.0/24 = 127.101.0 network 8 bit host space ... [19:03] 127.0.0.1/8 (as common) = 127. network 24 bit host space ... [19:03] 3ffe:bc0:189:1:ab92:bc82:dc82:ac42/0 [19:04] okay what are the numbers (2 octets each : :?) [19:04] ipv6calc -r 3ffe:bc0:189:1:ab92:bc82:dc82:ac42/ [19:04] 2.4.c.a.2.8.c.d.2.8.c.b.2.9.b.a.1.0.0.0.9.8.1.0.0.c.b.0.e.f.f.3.ip6.int [19:05] 3ffe:bc0:189:1 = prefix ab92:bc82:dc82:ac42 = 64 [19:05] okay those are nibbles, right? (I mean the ipcalc6 output) [19:05] nibbles? [19:05] half bytes ... 4 bits each ... [19:06] ipv6calc -r 3ffe:bc0:189:1:1234:1234:1234:1234 [19:06] 4.3.2.1.4.3.2.1.4.3.2.1.4.3.2.1.1.0.0.0.9.8.1.0.0.c.b.0.e.f.f.3.ip6.int. [19:06] doesn't give a clue, unless you explain me one of them ;) [19:06] ipv6calc -r 3ffe:bc0:189:1:abc1:abc2:abc3:abc4 [19:06] 4.c.b.a.3.c.b.a.2.c.b.a.1.c.b.a.1.0.0.0.9.8.1.0.0.c.b.0.e.f.f.3.ip6.int [19:06] well [19:06] 'f' in the latter suggests that this is 15 which are 4 bytes (one nibble) [19:06] you got a suffix [19:07] and you can do all adress you want with the suffix [19:07] 3ffe:bc0:189:1 :1234:1234:1111:1112 [19:07] understant? [19:07] okay, you say it's 128 bit in totla, right? [19:08] yes [19:08] okay, you say that 4.3.2.1.4.3.2.1.4.3.2.1.4.3.2.1.1.0.0.0.9.8.1.0.0.c.b.0.e.f.f.3 is a full description, yes? [19:08] yes [19:08] okay, those are 32 chars excluding the dots, so 128/32 = 4 ... [19:08] therefore I conclude each element is 4 bits in size (a nibble) [19:09] now you show me the 3ffe:bc0:189:1:1234:1234:1234:1234 mapping ... [19:09] think you are rignt [19:09] 3ffe:bc0:189:: [19:09] :: = 0000:0000:0000:0000 [19:10] 3ffe:bc0:189:1111:2222:3333:4444 [19:10] 3ffe:bc0:189:1a1b:1c1e:abcc:1234 [19:10] etc etc etc [19:10] so million of ips / suffix.. [19:14] this, if compared to the output above, and considering that the simples explanation is the right one ... I assume that the direction is reversed and each :: is 4*4 = 16 bits or two bytes (octets) [19:14] and that leading zeroes can be left out ... right? [19:14] so :189: = :0189: = .9.8.1.0 right? [19:14] yes [19:14] ipv6calc is to manipulate ipv6 adrress [19:14] ipv6 is new [19:14] okay and I 'get' an ipv6 prefix assigned from somewhere? [19:14] so we need tool.. [19:14] yes [19:14] where can I get mine? [19:14] how do I get it? [19:14] i sugest you freenet6 [19:14] is the ipv6 test [19:14] 3ffe [19:14] cause real ipv6 is like [19:15] 2001:470:1F00:237 [19:15] okay, where is this for example from? [19:15] http://www.freenet6.net [19:15] 2001:470:1F00:237 ? [19:16] is from hurricane electric [19:16] :P [19:16] http://www.freenet6.net/download.shtml [19:16] get the client [19:16] and register yourself [19:16] VS:/vservers# vserver test1 enter [19:16] Warning: /usr/src/linux/System.map has an incorrect kernel version. [19:16] ipv4root is now 0.0.0.0 [19:16] Can't set the new security context [19:16] : Invalid argument [19:16] humm [19:17] Linux VS 2.4.22-vs1.1.3 [19:17] what tools? [19:17] util-vserver-0.24 [19:17] okay ... let's do some tests ... [19:18] # chcontest --ctx 100 false [19:18] chcontest --ctx 100 false [19:18] bash: chcontest: command not found [19:18] lol [19:18] grr ... I will hunt you down on ipv6 network ;) [19:18] juste register [19:19] # chcontext --ctx 100 false [19:19] and i will help you [19:19] VS:~# chcontext --ctx 100 false [19:19] New security context is 100 [19:19] okay so this seems to work ... [19:20] is it possible that your scripts use the 'old' chcontext tool? [19:20] will re-dl the tools [19:23] what distro you use? [19:24] well Bertl i got the same error [19:24] CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME DESCRIPTION [19:24] 0 30 50MB 5kB m02.03 m07.90 1m10.94 root server [19:24] 49153 7 11MB 1kB m00.00 m00.14 m33.85 test1 [19:25] VS:/vservers# vserver test1 enter [19:25] Warning: /usr/src/linux/System.map has an incorrect kernel version. [19:25] ipv4root is now 0.0.0.0 [19:25] Can't set the new security context [19:25] : Invalid argument [19:25] and i cannot enter in [19:25] okay .. show me ther vserver conf file ... [19:25] S_HOSTNAME="test1" [19:25] IPROOT="0.0.0.0" [19:25] IPROOTDEV="eth0" [19:25] ONBOOT="no" [19:25] S_NICE="" [19:26] S_FLAGS="lock nproc" [19:26] ULIMIT="-H -u 256 -n 1024" [19:26] S_CAPS="CAP_NET_RAW" [19:26] # *NOT* DNS domain name, for NIS only [19:26] S_DOMAINNAME="" [19:26] hmm ... try chcontext false [19:26] VS:/vservers# chcontext false [19:26] New security context is 49154 [19:27] well this works too ... so it must be something else ... [19:27] remove the IPROOT line entirely, as it is bogous anyway ... [19:27] or comment it out ... [19:28] done [19:28] i cannot shut down the verver [19:28] it word with 1.1. [19:28] 0 [19:28] and 1.0 [19:29] hrm, you didn't shut it down before? [19:29] before the change I mean? [19:29] with or without iproot [19:29] i canot [19:29] and i cannot enter it anyway [19:29] what does vps give [19:29] vps auxwww [19:30] i past this? [19:30] yup ... [19:30] the output... [19:30] search for some lines with the 'missing' context ... [19:31] root 246 49153 test1 0.0 0.9 1344 600 ? S 17:37 0:00 /sbin/syslogd [19:31] root 256 49153 test1 0.0 0.8 1304 556 ? S 17:37 0:00 /usr/sbin/inetd [19:31] daemon 265 49153 test1 0.0 0.9 1384 580 ? S 17:37 0:00 /usr/sbin/atd [19:31] root 268 49153 test1 0.0 1.0 1652 684 ? S 17:37 0:00 /usr/sbin/cron [19:32] okay, now type chcontext --ctx 49153 false [19:32] chcontext --ctx 49153 false [19:32] Can't set the new security context [19:32] : Invalid argument [19:32] VS:/vservers# [19:32] ahh okay, we found the error ... [19:32] that is a bug(TM) congrats ... [19:33] give me five minutes and you get a solution/fix ... [19:33] ok [19:33] Action: shuri go eat [19:33] brb [20:21] matta (matta@69.56.241.195) joined #vserver. [20:22] hi matt! [20:24] re [20:25] so Bertl [20:25] did you register? [20:25] not yet ... still trying to fix their src.rpm .. (low priority ;) [20:25] ok [20:25] ipv6 is high proprity [20:25] :P [20:26] hi [20:26] i'd like to see vserver ported to run under the UML arch [20:26] :) [20:26] yeah, I guess this would take 10-15 mins ... a good idea ... ;) [20:26] compiles cleanly, just missing the arch bits .. [20:26] ;-) [20:26] let me see what is required ... [20:26] ok [20:27] i never used uml before, it's kinda cool... definitely slow unless you use all the performance mods you can find [20:27] but very cool that you can just load the uml kernel and you don't need any patches on the host [20:27] well, I usually use QEMU, which does the same ... at a higher speed ;) [20:29] faster? [20:29] hrm [20:29] hmm, does uml still require patches ontop of vanilla kernel? [20:29] Bertl: for 2.4 yes.. one sec [20:29] thought they included it ... [20:30] well, that is another advantage for QEMU, it only requires to change 2-3 lines ;) [20:30] http://kernels.usermodelinux.org/kernels/ [20:30] that has kernels and the diffs/configs for most [20:30] i used [20:30] http://kernels.usermodelinux.org/kernels/linux-2.4.22-8um/uml-patch-2.4.22-8.bz2 [20:30] and vs1.00 patched clean except for 1 line in include/fs.h [20:31] and then compiled clean [20:31] once you apply it you have to do [20:31] make menuconfig ARCH=um [20:31] and make linux ARCH=um [20:34] this had me experimenting with netconsole too from RedHat [20:34] seems cool, has some limits i'd rather not be there [20:34] only works for servers on the same LAN segment [20:34] and read only [20:34] yeah, I hope netconsole will get 'woring' into 2.4/2.6 soon ... [20:35] s/worin/working/ [20:37] whoa [20:37] i ported it [20:37] myself [20:38] i was up very lately last night working on this.. (till 7AM my time) [20:38] hrm, that is something I do not understand, why do developer (like the uml people) tend to modify unrelated code ... [20:38] and forgot I did a half-ass copy and paste from Alex's tree.. [20:38] didn't think it would actually work [20:38] but i just tried it out [20:38] there are 100 things to fix in the kernel .. why change something unrelated ... [20:38] (none):~/util-vserver-0.24/src# uname -a [20:38] Linux (none) 2.4.22-vs1.00-8um #8 Mon Nov 17 06:15:37 EST 2003 i686 unknown [20:38] (none):~/util-vserver-0.24/src# ./vserver-stat [20:38] ./vserver-stat: in openning /var/run/vservers/: No such file or directory [20:38] CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME DESCRIPTION [20:39] 0 19 16MB 1kB m00.21 m00.85 1m29.57 root server [20:41] that's awsome, i never did anything like that before. [20:41] (and had it work) [20:44] okay, let me see your 'patch' ontop of 2.4.22+vs1.00+um ... [20:45] ok.. [20:47] pflanze (~chris@129.132.19.124) left irc: Ping timeout: 493 seconds [20:49] Only in linux-2.4.22-uml-vserver/arch/um: os [20:50] how do I have diff create that patch for the file instead of printing that? [20:50] you do diff -NurpP (where and are the kernel trees linux-xxxx) [20:51] diff: extra operand `linux-2.4.22-uml-vserver' [20:51] with that.. [20:51] diff -NurpP linux-2.4.22-vs1.00-8m linux-2.4.22-vs1.00-8m-matt [20:52] diff -NurpP linux-2.4.22-vs1.00-8um linux-2.4.22-vs1.00-8um-matt [20:52] hrm [20:52] strange [20:52] what? [20:52] just made a new tree with the same patches [20:52] but when I run diff a bunch of um stuff is coming up as changes.. [20:53] simply show me all between a vs1.00 and your patched version then ... okay? [20:53] ok [20:54] (including the uml patches) ... or the other way around, between 2.4.22-8um and your patched version ... [20:54] this would actually be the better idea ;) [20:55] http://66.103.140.20/2.4.22-vs1.00-8um.big.diff [20:55] hmm, not very big for me ... actually empty :( [20:57] ensc (~ircensc@134.109.116.202) joined #vserver. [20:57] hello [20:58] hi enrico! [20:58] Bertl: one sec.. [20:58] Bertl: what's with ctx_t? [20:58] simple, your tools don't allow ctx >= 32768 ... [20:59] reason for that, short int (65533 -> -3) passed as uint32 ... out of range ;) [21:00] funny things will happen when dynamic addresses reach 65534 and 65535 ;) [21:00] ok [21:00] so http://66.103.140.20/ [21:00] 2.4.22-vs1.00-um8.diff [21:00] that is what I remember doing [21:01] 2.4.22-vs1.00-8um.big.diff that's what diff -r says, most likely my orig tree isn't the same as it was before [21:01] Bertl: ok, I will 'typedef unsigned short ctx_t' [21:01] no, that will be wrong too ... [21:01] hmm, at least I think so ... [21:02] well, guess we have to check if chcontext --ctx -1 should/will work [21:03] why not use int or uin32 as the kernel interface does ? [21:03] within the kernel, ctx_t is 'signed int', isn't it? [21:08] [test split-2.4.22-vs1.1.3]> grep -rI ctx_t * [21:09] returns nothing, so there is no ctx_t inside the kernel ;) [21:09] we'll probably add one, (or not) later ... if it makes sense ... [21:10] @matt okay this is aminimum of changes, and I'm sure they are not sufficient to make uml and vserver work together as expected ... for example the set_ipv4root isn't even mapped there ... [21:10] hrm, user e-mailing the list... [21:11] oh, hrm [21:11] how could I test that? [21:11] (none):~# chcontext --ctx 1 cat /proc/self/status [21:11] New security context is 1 [21:11] Name: cat [21:11] State: R (running) [21:11] please do the following: [21:11] it seems to work, haven't tried to assign an IP though [21:11] chbind --ip 192.168.0.1 false [21:12] ah, there you go [21:12] missed a part :) [21:12] (none):~# chbind --ip 192.168.0.1 false [21:12] Can't set the ipv4 root (Function not implemented) [21:12] okay, I have a aptch for you .. right here ... [21:13] ok.. [21:13] http://vserver.13thfloor.at/Experimental/patch-2.4.22-8um-vs1.00.diff [21:13] this goes ontop of 2.4.22-8um ... (vserver is included) [21:14] and I'm not entirely sure it will work as expected, but the chances are good ... [21:14] ok [21:14] yeah, it seems the um stuff isn't too much [21:15] root@vps2 src]# ls -ald linux-* | wc -l [21:15] 28 [21:15] i need to do some housecleaning .. [21:18] locate linux-2.4.2 | grep MAINTAINERS | wc [21:18] 533 533 34216 [21:18] hehe ... [21:19] hrm [21:19] lots of sched.h build errors [21:19] what message? [21:20] like... lots [21:20] lots of warnings [21:20] hmm, it should be possible to select uml for me, right? [21:20] defaults to `int' in declaration of `fs_fsbtodb' [21:20] Bertl: select uml? [21:20] oh shit [21:20] i built it wrong [21:20] well, as target option I assume ... [21:21] yeah [21:21] I did bzImage out of habit [21:21] gotta do linux ARCH=um [21:21] do I have to change anything in the config? [21:22] you have to redo it [21:23] completely different options [21:23] just do make config/xconfig/menuconfig ARCH=um [21:23] then make linux ARCH=um [21:23] and then you can run ./linux [21:24] well I did make oldconfig ARCH=um ... and ansered almost everything with yes ... [21:27] i hope it still oops's after I do this [21:27] i have a feeling if I split it up it may not crash [21:28] well, as I see it, 50% of the 'low-level' interfaces are [21:28] but i'm not going to put everything under 1 UML for performance reasons [21:28] changed by uml ... so I assume, if something crashes/hangs, then the host you are running the uml stuff on ,) [21:28] huh? [21:29] well, the host is un-modified [21:29] okay, did you read the email, which said, even kernel org had this hangs? [21:29] no, i missed that... this is new? [21:29] perhaps I didn't get it [21:29] I'm almost certain, this is only _triggered_ by vserver or the resources it consumes ... [21:30] i think it's the resources it comsumes [21:30] the workload.. [21:30] lots of processes [21:30] yup, probably ... [21:30] heavy cache usage [21:30] but hey, this way we can strss the kernel even more ;) [21:30] s/strss/stress/ [21:31] well, for my own personal reasons at least I can setup a script to reboot a hung uml [21:31] you should have a look at QEMU, it's not perfect yet, but it doesn't change the interface of the 'emulated' kernel ... [21:31] instead of waiting an hour for hosting provider to do it [21:31] @matt a watchdog card would do good there too ... [21:32] yeah, it would [21:32] hrm... link errors [21:32] maybe a watchdog is onboard and you just don't use it yet? [21:32] gcc -Wl,-T,arch/um/link.ld -static -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc \ [21:32] -o linux arch/um/main.o vmlinux.o -L/usr/lib -lutil [21:32] vmlinux.o: In function `do_wp_page': [21:32] mine is still building ... [21:32] Bertl: no, i would know :) [21:32] what board is this? [21:32] looks like kmap_prot and kmap_pto [21:32] hrm.. asus.. [21:33] any model specific information ;) [21:33] shit, they used to list it but they don't [21:33] it's an asus athlon mp board :) [21:34] one of em is at least.. [21:34] you forget, I don't buy hardware, I lease it :) [21:34] hmm, so maybe a lspci -vvv of that machine would be possible? [21:35] hmm, seems that the UML stuff is still early development ... [21:35] no watchdog [21:35] uml stuff? [21:35] pcap_user.c:10:18: pcap.h: No such file or directory [21:35] that is my compile error ... [21:35] heh, i got farther than that :) [21:36] well, I now remove the PCAP option .. this will help ;) [21:36] i did modify the config [21:36] okay, is the lspci -vvv available anywhere? [21:36] Bertl: yeah [21:36] i don't see a watchdog [21:37] well let me look at it, I want to know the chipset ... [21:37] it's amd IGD4-2P [21:37] (760 MP) [21:41] /usr/src/ENHANCE/linux-2.4.22-8um-vs1.00-P1/include/asm-generic/tlb.h:42: undefined reference to `mmu_gathers' [21:41] /usr/src/ENHANCE/linux-2.4.22-8um-vs1.00-P1/include/asm-generic/tlb.h:44: undefined reference to `mmu_gathers' [21:41] /usr/src/ENHANCE/linux-2.4.22-8um-vs1.00-P1/include/asm-generic/tlb.h:46: undefined reference to `mmu_gathers' [21:41] well it doesn't compile for me ... with or without the vserver patches ... [21:43] compiled for me this time [21:44] good for you ... [21:45] let's see if it works.. [21:45] do you still have my architecture test list in your mailbox? ;) [21:45] yes, i do [21:45] why? [21:46] those tests should be perfect to verify funtionality ... [21:46] (none):~# chbind --ip 192.168.1.1 false [21:46] Can't set the ipv4 root (Function not implemented) [21:46] shit.. [21:46] oh.. [21:47] chcontext doesn't work anymore.. [21:48] okay, please make me a diff between the original 8um patched kernel, and the one you got working before (including all the vserver stuff ..) [21:50] ahh okay found the bug ... [21:50] #define LAST_GENERIC_SYSCALL __NR_sched_getaffinity [21:51] in arch/um/kernel/sys_call_table.c [21:51] has be changed to #define LAST_GENERIC_SYSCALL __NR_set_ipv4root [21:51] yeah... [21:52] i remember I left it out, because I thought it was part of his virtual network [21:52] so perhaps if I added the syscall for set_ipv4root it would have all worked [21:53] well, probably ... [21:53] you are becoming a kernel hacker, when will you take over the vserver project ;) [21:53] hahahahaha [21:54] i'm junior junior kernel hacker :) [21:54] the 'junior' goes with the age ... [21:54] a "vserver patch janitor" would be the best thing for now ;) [21:54] cleaning up a few years worth of cruft [21:54] cleaning everything up [21:55] well rik, I'm always cleaning up ... [21:55] until it's nice and shiny and Linus merges it because the code is just too beautiful to leave separately ;) [21:55] Bertl: indeed [21:55] vserver has improved a LOT recently, compared to how it was 2 years ago [21:56] :P [21:56] I know that this work isn't honored among the users, but I like it, and therefor I do it ... [21:56] Bertl rules [21:56] :) [21:56] Bertl: .. [21:56] all tests suceeded [21:56] i replied with the tests to your arch e-mail [21:56] well, call this a sucessful uml port then ;) [21:57] very cool [21:57] I'll draft a patch ontop 8um to make it 'vserver' compatible ... [21:57] i can't wait to sell Virtual Dedicated Servers that are capable of running Virtual Private Servers :) [21:57] hahahaa [21:57] you could all those put into xen later, I guess 8-) [21:57] i tried xen [21:58] before I looked at UML [21:58] even though they are working on 1.2 it's still rather unusable [21:58] and, what is the first experience? [21:58] and I don't like that all resources are guaranteed, makes it hard to oversell [21:58] UML better that vserver? [21:58] shuri: it's different.. [21:58] advanteg? [21:58] advantages? [21:58] shuri: well, it's slower but it's a full linux kernel [21:59] ho [21:59] they complement each other I think [21:59] yes [21:59] same as with xen IMHO ... [21:59] shuri: so you can run 2.4.5, 2.4.23, and 2.6 kernels all on one [21:59] xen definitely seems cool [21:59] in all cases you use the 'sharing' advantage of vserver ... [21:59] i was interested it as everything has QoS [21:59] especially the I/O [22:00] in their tests they had virtual servers under very heavy load and it didn't the 1 idle running one [22:02] well, there are many things we can address in the near future, like limits, ipv6, linux2.6, scheduler, RHEL, .... but I need some feedback regarding the recently added features ... otherwise I end up with a block of changes, which doesn't work, and nobody knows why ... [22:03] haven't got a single reply since vs1.1.0 regarding the devel branch ... [22:03] okay, enough complaining ;) what do we 'attack' next? [22:04] i'm not going anywhere near dev for a while with the problems i've been having recently [22:04] well, i have the vr/dl stuff added and working [22:04] under uml [22:04] so you are at dev, then ;) [22:04] well, by working I mean it compiles :) [22:04] as there is no dl patch for vs1.00 ... [22:05] the c17e stuff applies cleanly [22:05] well, with same messages that c17h did [22:06] probably, but that was experimental, right? [22:06] it seems to work good [22:16] loger joined #vserver. [22:43] okay, this is the 'final' solution ... http://vserver.13thfloor.at/Experimental/patch-2.4.22-8um-vsprep.diff [22:44] you apply that ontop of 8um and all the stable/devel patches for 2.4.22 will apply/should work ... [22:44] okay stable for now .. devel will take a little ;) [22:44] huh? [22:45] what's diff? [22:45] just realized that the syscall stuff changed ... [22:45] JonB (~jon@129.142.112.33) joined #vserver. [22:45] oh [22:45] so what will work that didn't before? [22:45] ehr ... patching the vs1.00 patches ;) [22:46] so, apply um, then that, then vs1.00 [22:47] but nothing functionaily different [22:47] I have a cold, do not trust me ... [22:47] http://vserver.13thfloor.at/Experimental/patch-2.4.22-8um-vsdprep.diff [22:47] okay this is for the devel branch ... [22:48] I guess I have fever too ... will go to bed early ... [22:48] good idea [22:49] cold there? [22:49] Bertl: what happens if i setup a vserver.conf to use eth0 and 0.0.0.0 ? [22:49] hmm, well I assume it binds to everything ... [22:50] so basically this should be the same as not using chbind ... [22:50] but I might be wrong on that ... [22:50] Bertl: i'll test it [22:51] we need some 'good' network testing stuff anyway ... [22:51] define good ? [22:51] some tools to make special connections and test daemons (echod) etc .. there are some out there ... just have to collect them and put em into a useful script/test [22:52] okay, sufficient would suffice, I think ... ;) [22:54] hrm.. [22:54] hmm ... the list of Vserver for 2.6 testers is quite small ... and IIRC not complete ... anybody here who would like to test for 2.6 stuff? [22:54] question [22:54] none /vservers2 hostfs defaults,/vservers2,tagctx 1 1 [22:54] that doesn't work [22:55] take away the defaults.. that was me testing [22:55] it works with just /vservers [22:55] and once it's mounted I can mount -o remount,tagctx /vservers2 [22:55] so, how do I go about mounting that with tagctx ? [22:55] yes, but this doesn't help you ... [22:55] i figure it's a syntax thing.. [22:55] Bertl: why? [22:55] remount for tagctx isn't possible ... [22:55] oh, i guess dl+friends arn't ported for uml ? [22:56] right [22:56] i'm asking how I get it to mount with tagctx from fstab [22:56] Bertl: well, i did make the vserver, i just forgot to install it into the vmware [22:56] that would cause a time-paradox, which could eat us all ... [22:56] okay ... defaults,/vservers2,tagctx [22:56] what has the /vservers2 to do here? [22:57] this is inside the options, right? [22:57] yes [22:57] that's options [22:57] it won't let me specify more than 1 option... weird [22:57] okay, this is the path for the hostfs I assume? [22:58] show me the fstab entry which _is_ working without the tagctx [23:03] hmm, does the immutable link iversion stuff work with uml? [23:06] how do i specify the ip address in .conf ? [23:07] iproot="eth0 0.0.0.0" does not give it 0.0.0.0, but the ip address of the root servers eth0 [23:07] eth0:0.0.0.0/0 I assume ... [23:08] but maybe the tools do some mapping ... [23:09] vserver test enter gives me this output (twice) [23:10] invalid ip number or netmask: 0 [23:10] okay try to leave the /0 out ... [23:13] Bertl: done, now (and before) it comes with SIOCSIFFLAGS: cannot assign requested address [23:14] okay .. this is vsXXX ? [23:14] 2.4.23-pre9-vs1.1.0 [23:15] it cant assign netmask, brdaddr or flags (again) all 4 with Connot assign requested address [23:15] Bertl: i'll asume that it cant use 0.0.0.0 [23:15] let me have a look at the code .. 1min [23:18] Bertl: even though it appears like there is no ip address, it does have the ip address of the host [23:19] there are no checks in the kernel, which would prohibit setting 0.0.0.0 .. so this is a userspace issue ... [23:19] Bertl: okay [23:21] you could verify that with / # chbind --ip 0.0.0.0 false [23:21] ipv4root is now 0.0.0.0 [23:21] Bertl: does this explain why it does get the ip address of the root host ? [23:21] Bertl: yeah i get that one too, as expected [23:21] so probably the userspace script, does some magic ... [23:21] maybe someone should have a look at it .. 8-) [23:22] Bertl: i'm more worried that i can see processes running at the root hosts ip address that is running inside the vserver, and though the vserver does have address 0.0.0.0 it might not be the best solution? [23:23] what might not be the best solution? looking at the userspace scripts? [23:24] as I said, find a tool, which binds to 192.168.0.1 if started with chbind --ip 192.168.0.2 (assumed that both exist) on a vserver installation with ipv6 disabled ... then we have a reproducible bug, right? [23:25] Bertl: hmm, i'm confused. Here is what i have. one root server using 194.239.210.107 [23:26] inside that one vserver called test. [23:26] Inside that vserver i could bind a sshd to a specific ip, but which ip ? [23:26] to all ip's listed on the chbind command ... [23:27] Bertl: where are those ip listed? [23:28] Bertl: in starting the vserver ? [23:28] well, there are two basic commands chcontext and chbind ... [23:28] they are 'utilized' by the vserver script ... which does a lot ... [23:29] but you can verify the actuall settings if you enter the context via for example ssh ... vserver enter could give different results ... [23:30] chbind --ip 192.168.0.1 grep ipv4root /proc/self/status [23:30] ipv4root is now 192.168.0.1 [23:30] ipv4root: 0100a8c0/00ffffff [23:30] ipv4root_bcast: ffffffff [23:30] ipv4root_refcnt: 1 [23:31] this for example shows the setting after a successful chbind .. [23:31] # chbind --ip 192.168.0.1 --ip 192.168.0.2 grep ipv4root /proc/self/status [23:31] ipv4root is now 192.168.0.1 192.168.0.2 [23:31] ipv4root: 0100a8c0/00ffffff 0200a8c0/00ffffff [23:31] ipv4root_bcast: ffffffff [23:31] ipv4root_refcnt: 1 [23:31] this is for two ip addresses ... well I guess to got the idea ... [23:32] or flood protection ;) [23:32] Bertl: no i dont get the idea [23:32] ssh to the test server ... then do grep ipv4root /proc/self/status [23:33] ipv4root: 00000000/00ffffff [23:33] show me the result, and I tell you the ip's ... [23:33] well this is a 0.0.0.0/24 ... [23:33] matta (matta@69.56.241.195) left irc: Ping timeout: 493 seconds [23:34] Bertl: network access still works [23:34] I assume this will allow all 'generic' connections/binds but forbid any specific ... [23:35] so a sshd on 0.0.0.0 will work, an sshd on 192.168.0.1 not ;) [23:38] Bertl: it appears like it [23:41] well, I would call this 'expected behaviour' ;) [23:41] the real question is, what do you want to accomplish ... [23:42] Bertl: i want to be convinced that this is not a problem, or i want to hear someone else saying "i'll fix that" [23:43] Bertl: i would say you succeded in convincing me it is not a problem [23:43] hmm.. well why is your ipv4root 0.0.0.0 ? [23:43] Bertl: it isnt [23:43] it looks like we are dancing around the problem/question/issue ... [23:44] Bertl: i just thought "what if it was? would there be any problems/security if it was" [23:44] I have a cold, and a little fever, so you have to be patient with me ... [23:45] i am, [23:45] okay, so what you fear is, that the administrator configures 0.0.0.0 as a ipv4root, and this would allow access to the host ... [23:45] or am I still missing something? [23:46] Bertl: something like that [23:46] possibly access to ip addresses it shouldnt have access to [23:46] Bertl: but i guess that setting it to 0.0.0.0 is like sharing files between vservers without the immuteable flag [23:47] Bertl: at least now after your explination i do [23:48] ahh, okay, so now you _are_ aware of the 'administrative' responsibility ... right? ;) [23:49] but what you could do for vserver is the following: [23:50] check 'allowing' one and more ip addresses (2-3) for one vserver, and verify that processes are able to bind to them and nothing else ... in the best case for the latest stable and devel branch ... [23:50] i know that root can shoot himself in the foot [23:50] if he has enough rope, yes ;) [23:50] Bertl: can i do that with 2.4.23-pre9-vs1.1.0 ? [23:50] not perfect, but better than nothing, I assume ... [23:51] Bertl: i'll just comepile another kernel then [23:51] -e [23:55] Bertl: does it have to be for different ethernet cards, or ? [23:56] well, it wouldn't be bad to try both, but as I said ... please, just make good notes 'what' you tested .. and 'how' [23:57] Bertl: well, vmware does not have more than one ethernet device [23:57] well, then one it is, i guess ... [23:57] Bertl: but my server does, and there i already have vservers running using eth0 and eth1, but i havent checked that they can only bind to one ip [00:00] --- Tue Nov 18 2003