[Vserver] /etc/vserver/server/flags not working as expected (fakeinit)

From: Andreas Baetz <lac01_at_web.de>
Date: Tue 28 Mar 2006 - 10:26:51 BST
Message-Id: <200603281126.51695.lac01@web.de>

When using /etc/vserver/vserver/flags, the flags are set, but the flag fakeinit dos not work as expected:

host:/etc/vservers/vserver# cat flags

host:/etc/vservers/vserver# vserver vserver start
Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
Starting internet superserver: inetd.
Starting deferred execution scheduler: atd.
Starting periodic command scheduler: cron.
host:/etc/vservers/vserver# vserver vserver enter
mesg: /dev/pts/10: Operation not permitted
vserver:/# cat /proc/self/vinfo
XID: 8004
BCaps: 0000000000000001
CCaps: 0000000000000001
CFlags: 0000000202020010
CIPid: 0
vserver:/# ps ax
  PID TTY STAT TIME COMMAND
    1 ? S 0:00 init [2]
21542 ? Ss 0:00 /sbin/syslogd
21581 ? Ss 0:00 /usr/sbin/inetd
21587 ? Ss 0:00 /usr/sbin/cron
21600 pts/10 S 0:00 /bin/bash -login
21620 pts/10 R+ 0:00 ps ax
vserver:/# logout

Now, fakeinit is put into flags:

host:/etc/vservers/vserver# cat flags
fakeinit
host:/etc/vservers/vserver# vserver vserver start
host:/etc/vservers/vserver# Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
Starting internet superserver: inetd.
Starting deferred execution scheduler: atd.
Starting periodic command scheduler: cron.

host:/etc/vservers/vserver# vserver vserver enter
mesg: /dev/pts/10: Operation not permitted
vserver:/# cat /proc/self/vinfo
XID: 8004
BCaps: 0000000000000001
CCaps: 0000000000000001
CFlags: 0000000002020010
CIPid: 21945
vserver:/# ps ax
  PID TTY STAT TIME COMMAND
21958 ? Ss 0:00 /sbin/syslogd
21997 ? Ss 0:00 /usr/sbin/inetd
22003 ? Ss 0:00 /usr/sbin/cron
22009 pts/10 R 0:00 /bin/bash -login
22025 pts/10 R+ 0:00 ps ax
vserver:/# logout

Now, 0x10 (fakeinit) is put into flags:

host:/etc/vservers/vserver# cat flags
0x00000010
host:/etc/vservers/vserver# vserver vserver start
Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
Starting internet superserver: inetd.
Starting deferred execution scheduler: atd.
Starting periodic command scheduler: cron.
host:/etc/vservers/vserver# vserver vserver enter
mesg: /dev/pts/10: Operation not permitted
vserver:/# cat /proc/self/vinfo
XID: 8004
BCaps: 0000000000000001
CCaps: 0000000000000001
CFlags: 0000000202020010
CIPid: 0
vserver:/# ps ax
  PID TTY STAT TIME COMMAND
    1 ? S 0:00 init [2]
22335 ? Ss 0:00 /sbin/syslogd
22374 ? Ss 0:00 /usr/sbin/inetd
22380 ? Ss 0:00 /usr/sbin/cron
22393 pts/10 S 0:00 /bin/bash -login
22408 pts/10 R+ 0:00 ps ax
vserver:/# logout

There are 2 questions:

1) Why does fakeinit not work, while 0x10 does ?
2) Why does 0x10 not set just 0x0000000000000010, but 0x0000000202020010 ?

Andreas
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Mar 28 10:39:28 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 28 Mar 2006 - 10:39:32 BST by hypermail 2.1.8