From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Wed 28 Jan 2004 - 15:48:12 GMT
On Wed, Jan 28, 2004 at 07:25:35AM -0700, Matthew Excell wrote:
> On Wed, 2004-01-28 at 02:39, Enrico Scholz wrote:
> > matt_at_possibilityforge.com (Matthew Excell) writes:
> >
> > Seems to be the root of all evil... 'ps' (used by vps) and alpha
> > vserver-stat are accessing (and requiring) /proc/uptime which is not
> > visibly by default.
> >
>
> Using vproc (thanks Herbert) I put uptime back into all context procs.
> Then, following hints from strace, I put meminfo into all context procs.
>
> For future reference: vproc -e /proc/uptime; vproc -e /proc/meminfo
>
> I couldn't think of any huge security holes that would create - correct
> me if I'm wrong. . . Anyway, vps and vserver-stat run. vserver-stat
> appears to enter an endless loop - just repeating the root server and an
> unnamed server over and over.
I guess not, a final set of 'secure' /proc entries
has to be defined, but I hope the community will report
their findings and experiences ...
just for a test, enabling all entries is an option too
vproc -e /proc/[a-z]*
this makes vserver-stat work for me (old tool, YMMV)
# vserver-stat
CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME DESCRIPTION
0 18 10MB 569B m19.69 m44.10 5m58.10 root server
1001 16 96MB 7kB m01.22 m01.12 2m45.73 XXXX Primary Name Server Unit
1002 16 96MB 7kB m04.25 m00.78 m23.76 YYYY Primary Name Server Unit
> > > - vserver cannot find vserver-setup
> >
> > This indicates an incomplete installation of util-vserver (only 'make
> > install' is supported).
> >
>
> I used "make install" - I can find vserver-setup.functions installed,
> but no vserver-setup - and strace doesn't even show that being opened.
>
> It did show /usr/local/etc/vservers/vservername.conf being opened. I was
> using /etc/vservers/ for my config. I symlinked back to /usr/local and
> the error changed - it wasn't actually looking for vserver-setup, just
> the config file:
>
> WARNING: can not find configuration, assuming legacy method
> Can not find util-vserver installation; aborting...
>
> So now it just can't find something else. Strace showed it trying to
> open
>
> /usr/local/lib/util-vserver/legacy/util-vserver-vars
>
> I have
>
> /usr/local/lib/util-vserver/util-vserver-vars
>
> and
>
> /usr/local/sbin/util-vserver-vars
>
> I haven't yet tried symlinking those.
>
> Thanks again for fantastic software - hope this helps!
>
> Best Regards,
>
> Matt
>
> --
> Matthew Excell <matt_at_possibilityforge.com>
> The Possibility Forge, Inc.
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver