[Vserver] /proc/1 and PID of init (Debian and Gentoo guest)

From: Wilhelm Meier <meier_at_informatik.fh-kl.de>
Date: Tue 17 Jan 2006 - 11:28:56 GMT
Message-Id: <200601171228.57246.meier@informatik.fh-kl.de>

Hi,

the init-process of a VServer (Gentoo-VPS is started via init) naturally gets
a PID > 1 in the host-context, but this PID ist remapped to 1 in the
VPS-context. Is this a simple mapping done by the vserver-patches? I could
not spot this in the patch-set ... I think this is part of the virtualization
of the procfs similar to /proc/uptime. Can someone give me a hint?

Additionally, what happened in the case of a Debian-VPS, which is started
via /etc/init.d/rc 3 ? I can't read all the entries in /proc/1:

vs03:~# ls -l /proc/1
ls: cannot read symbolic link /proc/1/cwd: Permission denied
ls: cannot read symbolic link /proc/1/root: Permission denied
ls: cannot read symbolic link /proc/1/exe: Permission denied

and I can't find the init-process of the Debian-VPS in the spectator-context
or by the vps-tool. So, this entry in /proc is completely faked, I think.

In the old-style util-vserver-docu I found a flag "fakeinit". Does this exist
in the alpha-util-vserver also?

Well, I think this question is a typical newbie question, but I can't find the
information.

--
Wilhelm Meier
email: meier@informatik.fh-kl.de
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Jan 17 09:27:44 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 17 Jan 2006 - 09:27:50 GMT by hypermail 2.1.8