Package: xen-tools Version: 3.9-4+lenny1 Severity: normal Hi,
I think I have discovered a bug in xen-tools. I have a custom /etc/profile that insures one thing : root user have umask 077. When I whant to crate a new VM by using xen-tools, I start a tiny bash script from my root shell (with 077 umask) tha do some varaibles setting and finally start te following : xen-create-image --hostname $vmname --ip $vmip --memory $3 --partitions $4 No erros in logs file, everything seems fine. I start the VM without any problems but some apps have a strange behavior like : lpouzenc@sdfsvn1:~$ ping localhost ping: unknown host localhost This behavior is related to rights of the hosts file : lpouzenc@sdfsvn1:~$ ls -l /etc/hosts -rw------- 1 root root 511 mar 25 15:09 /etc/hosts Next, if I do a chmod 755 /etc/hosts, everything works well. I think that the problem is around /usr/lib/xen-tools/debian.d/50-setup-hostname script. Ths script do some echo "something" > /etc/hosts without umask preoccupations. There is may be some other scripts that are affected by this bad behavior and I don't have seen anything that fix the umask value before hooks execution. Regards, Ludovic Pouzenc -- System Information: Debian Release: 5.0.8 APT prefers oldstable APT policy: (500, 'oldstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-2-xen-amd64 (SMP w/1 CPU core) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages xen-tools depends on: ii debootstrap 1.0.10lenny1 Bootstrap a basic Debian system ii libconfig-inifiles-perl 2.39-5 Read .ini-style configuration file ii libtext-template-perl 1.44-1.2 Text::Template perl module ii perl-modules 5.10.0-19lenny3 Core Perl modules Versions of packages xen-tools recommends: pn libexpect-perl <none> (no description available) pn reiserfsprogs <none> (no description available) pn rinse <none> (no description available) ii xen-hypervisor-3.2-1-amd64 [x 3.2.1-2 The Xen Hypervisor on AMD64 pn xen-shell <none> (no description available) pn xfsprogs <none> (no description available) xen-tools suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

