Your message dated Tue, 11 Nov 2008 16:17:10 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#504780: fixed in util-vserver 0.30.216~r2772-4
has caused the Debian Bug report #504780,
regarding POSIX shared-memory commands do not work inside debootstrap'ed 
vserver by default
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
504780: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=504780
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: util-vserver
Severity: normal
Version: 0.30.216~r2772-3

I'm using a vserver kernel.  I get failures within a vserver guest
when i try to test the POSIX-style shared-memory commands with the .c
examples found here:

  http://www.cs.cf.ac.uk/Dave/C/node27.html#SECTION002730000000000000000

This turns out to be because the initial creation of /dev/shm inside
the vserver (by initscripts.postinst during a stock lenny debootstrap)
is defeated by
/usr/lib/util-vserver/distributions/lenny/debootstrap.script:

I created a stock debian vserver with:

  vserver monkey build -m debootstrap --context 101 --hostname monkey -- -d 
lenny -m http://ftp.us.debian.org/debian

All this basically does is set up some vserver configs and then invoke
debootstrap like this:

vnamespace --new /usr/sbin/debootstrap lenny 
/etc/vservers/.defaults/vdirbase/monkey http://ftp.us.debian.org/debian 
/usr/lib/util-vserver/distributions/lenny/debootstrap.script

After the debootstrap completes,
.../distributions/lenny/debootstrap.script monkeys around with /dev
within the chroot to replace it with the raw initial /dev:

[...]
function fixupDebian
{
    $_RM -rf "$1"/dev
    $_MV "$1"/dev.X "$1"/dev
}
[...]
mv "$VDIR"/dev "$VDIR"/dev.X
"$_VNAMESPACE" --new -- \
    "$DEBOOTSTRAP" $options "$@" "$DISTRIBUTION" "$VDIR" "$MIRROR" "$script" || 
:   ## HACK: ignore all errors...                                               
        
fixupDebian "$VDIR"
[...]


However, one of the jobs of the initscripts.postinst (which is run
during debootstrap) is to create /dev/shm for systems that do not have
a dynamically-populated /dev.

If the following two steps are done from the host before starting the
vserver, POSIX-style shared memory seems to work within the vserver
for me:

  mkdir /var/lib/vservers/$VSERVER_NAME/dev/shm
  chmod --reference=/dev/shm /var/lib/vservers/$VSERVER_NAME/dev/shm

Perhaps this directory should be added into the default deboostrap
operation?

Are there other ways to resolve this that i missed?

        --dkg

0 cur:~# dpkg -l | egrep 'linux-image|vserver|initscripts'
ii  initscripts                                 2.86.ds1-61          Scripts 
for initializing and shutting down t
ii  kvm-modules-2.6.26-1-vserver-amd64          72+dfsg-2+2.6.26-8   kvm 
modules for Linux (kernel 2.6.26-1-vserv
ii  linux-headers-2.6.26-1-common-vserver       2.6.26-8             Common 
header files for Linux 2.6.26-1-vserv
ii  linux-headers-2.6.26-1-vserver-amd64        2.6.26-8             Header 
files for Linux 2.6.26-1-vserver-amd6
ii  linux-image-2.6.26-1-vserver-amd64          2.6.26-8             Linux 
2.6.26 image on AMD64, Linux-VServer s
ii  linux-image-vserver-amd64                   2.6.26+16            Linux 
image on AMD64
ii  util-vserver                                0.30.216~r2772-3     user-space 
tools for Linux-VServer virtual p
0 cur:~# 

Attachment: pgpv4C9XMu2iu.pgp
Description: PGP signature


--- End Message ---
--- Begin Message ---
Source: util-vserver
Source-Version: 0.30.216~r2772-4

We believe that the bug you reported is fixed in the latest version of
util-vserver, which is due to be installed in the Debian FTP archive:

util-vserver_0.30.216~r2772-4.diff.gz
  to pool/main/u/util-vserver/util-vserver_0.30.216~r2772-4.diff.gz
util-vserver_0.30.216~r2772-4.dsc
  to pool/main/u/util-vserver/util-vserver_0.30.216~r2772-4.dsc
util-vserver_0.30.216~r2772-4_i386.deb
  to pool/main/u/util-vserver/util-vserver_0.30.216~r2772-4_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Micah Anderson <[EMAIL PROTECTED]> (supplier of updated util-vserver package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 07 Nov 2008 13:13:29 -0500
Source: util-vserver
Binary: util-vserver
Architecture: source i386
Version: 0.30.216~r2772-4
Distribution: unstable
Urgency: low
Maintainer: Micah Anderson <[EMAIL PROTECTED]>
Changed-By: Micah Anderson <[EMAIL PROTECTED]>
Description: 
 util-vserver - user-space tools for Linux-VServer virtual private servers
Closes: 307980 504780
Changes: 
 util-vserver (0.30.216~r2772-4) unstable; urgency=low
 .
   * Added /dev/shm to be created on vserver build for POSIX
     compliance (Closes: #504780)
   * Added debian/patches/60securecaps.dpatch to change the default
     policy to assume all capabilities are unsafe, unless they are
     specifically listed.
   * Fix incorrect $(CURDIR) usage in debian/rules (Closes: #307980)
Checksums-Sha1: 
 4a02c850f2f4dc5bc33f01bc226b50079c3a82f4 1511 util-vserver_0.30.216~r2772-4.dsc
 942ce6d4ce7d148a2851e9bce789ab26d7517046 36142 
util-vserver_0.30.216~r2772-4.diff.gz
 c9ff013f9a82ecc5b1ed91a67998202118f14a7d 551176 
util-vserver_0.30.216~r2772-4_i386.deb
Checksums-Sha256: 
 6498b6399ecc4c1cf22033d057e81ab6c070cec1f43d5686936bc82aa5f7a023 1511 
util-vserver_0.30.216~r2772-4.dsc
 355f06d2b1aca0b3415148a3e39066cd8f68212b1900c41c779e26310a6cf9a6 36142 
util-vserver_0.30.216~r2772-4.diff.gz
 2ab2b42317703179df4a13df84f361b993e1a92a2fb79fbdc887782b9b43dbe6 551176 
util-vserver_0.30.216~r2772-4_i386.deb
Files: 
 86983e01169a990de8fe5b7df74efd65 1511 net optional 
util-vserver_0.30.216~r2772-4.dsc
 17ad306106a1521517d814c767ff7f1c 36142 net optional 
util-vserver_0.30.216~r2772-4.diff.gz
 f27a89bf8057a4de519ffd4e49ea77d3 551176 net optional 
util-vserver_0.30.216~r2772-4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkkZrBYACgkQ9n4qXRzy1irP6gCeP9JmoQMURZd8uxuosXj4iIHn
a9IAn3WH2GYIYClhXgvV/J4bakD6zN1x
=/bb7
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to