-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
tag 360765 +pending
thanks
Thanks for the bug and the patch. I've committed such a fix (including a
postinst to check if the barrier was set on /, and to remove it if it
was), and will be uploading shortly.
Micah
Andreas Beckmann wrote:
> Package: util-vserver
> Version: 0.30.210-2
> Severity: important
>
>
> The init script executes a call to
> setattr --barrier
> for every entry $CURRENT in /etc/vservers, even if there exists no
> /etc/vservers/$CURRENT/vdir, because e.g. $CURRENT is a file.
>
> Files that may exist in /etc/vservers are e.g.
> newvserver-vars (from vserver-debiantools)
> *.conf (legacy config files, although I never used them)
>
> The result of setting barrier on / are error messages like
>
> # vserver-stat
> chdir(): Permission denied
>
> vserver myvserver start
> access("/proc/uptime"): Permission denied
>
> I fixed this by checking the existance of the directory before calling
> setattr:
>
> --- /etc/init.d/util-vserver~dist 2006-04-03 00:49:10.000000000 +0200
> +++ /etc/init.d/util-vserver 2006-04-04 16:10:33.000000000 +0200
> @@ -91,7 +91,7 @@
> for vserver in `ls /etc/vservers`
> do
> vdiractual=`readlink -f /etc/vservers/$vserver/vdir`
> - setattr --barrier $vdiractual/..
> + [ -d "$vdiractual" ] && setattr --barrier $vdiractual/..
> done
>
> # Then start up vservers with $MARK if $AUTO is set to start
> # things
>
>
> Perhaps a pre/post upgrade script should be added to fix updates from
> problematic versions.
>
> The command to be executed to fix the permissions is
>
> setattr --~barrier /
>
>
> Andreas
>
> -- System Information:
> Debian Release: testing/unstable
> APT prefers testing
> APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable'), (30,
> 'experimental')
> Architecture: i386 (i686)
> Shell: /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.16-1-vserver-k7
> Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
>
> Versions of packages util-vserver depends on:
> ii debconf 1.4.72 Debian configuration management
> sy
> ii iproute 20051007-3 Professional tools to control
> the
> ii libbeecrypt6 4.1.2-4 open source C library of
> cryptogra
> ii libc6 2.3.6-3 GNU C Library: Shared libraries
> an
> ii make 3.80+3.81.rc2-1 The GNU version of the "make"
> util
> ii net-tools 1.60-17 The NET-3 networking toolkit
>
> Versions of packages util-vserver recommends:
> ii binutils 2.16.1cvs20060117-1 The GNU assembler, linker and
> bina
>
> -- debconf information:
> util-vserver/postrm_remove_vserver_configs: false
> * util-vserver/start_on_boot: true
> util-vserver/prerm_stop_running_vservers: true
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEMpjP9n4qXRzy1ioRAlJIAJ9FQtl8bdqU9508BrDfUOGBlX6hpACfS2P7
GbujO3AwmSSXgXpiFClT0Xw=
=pCqQ
-----END PGP SIGNATURE-----
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]