On Fri, Feb 02, 2007 at 02:49:39PM -0600, Randall Smith wrote:
> Herbert Poetzl wrote:
> >On Tue, Nov 14, 2006 at 01:08:02PM -0600, Randall Smith wrote:
> >>With a fresh vserver install on Debian Etch, here is my shutdown output:
> >>
> >>~# vserver vs1 stop
> >>Stopping web server (apache2)....
> >>Shutting down WebKit: Success
> >>Stopping periodic command scheduler: crond.
> >>Stopping PostgreSQL 8.1 database server: main.
> >>Stopping internet superserver: inetd.
> >>Stopping rsync daemon: rsync.
> >>Stopping OpenBSD Secure Shell server: sshd.
> >>Stopping system log daemon: syslogd.
> >>Asking all remaining processes to terminate...done.
> >>Killing all remaining processes...done.
> >>cat: /proc/cmdline: No such file or directory
> >>mount: permission denied
> >
> >quite interesting ...
> >
> >>I have installed some apps, but I've been getting these errors
> >>since I first created the vserver. Any idea why?
> >
> >basically your shutdown scripts try do do something
> >and fail because of the limit capabilities, this
> >something seems to involve the following operations:
> >
> > cat /proc/cmdline (which is hidden)
> > mount (maybe proc or sys?)
> >
> >removing those lines from the shutdown script will
> >eliminate those errors, which can as well be ignored
> >
> >HTH,
> >Herbert
> >
> >>Randall
> >>
> >>_______________________________________________
> >>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
> >
>
> Check this out.
>
>
> root@vs1:/# grep -r cmdline /etc
> ******
> /etc/init.d/sendsigs: for x in $(cat /proc/cmdline); do
> *******
>
> So does this mean that sendsigs shutdown script will not be
> able to work properly?
while I do not see a problem with making /proc/cmdline
visible inside a guest, it might leak information from
the host into the guest, and for sure, it should not
be relevant for userspace scripts, maybe we make a
fake cmdline at some point ...
best,
Herbert
> Randall
>
>
> _______________________________________________
> 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
Received on Fri Feb 2 22:42:52 2007