Compare commits
2 Commits
debian-3.9
...
debian-3.9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
61fe6248dc | ||
|
|
b8877e9f57 |
@@ -2479,9 +2479,17 @@ sub createLoopbackImages
|
||||
$image_cmd = "dd if=/dev/zero of=$disk bs=$size count=1024";
|
||||
}
|
||||
|
||||
# Set the umask so that the images are not world readable.
|
||||
my $oldumask = umask;
|
||||
umask(0077);
|
||||
|
||||
# run the image creation command
|
||||
runCommand( $image_cmd );
|
||||
logprint( "Done\n" );
|
||||
|
||||
# Reset the umask to the previous value
|
||||
umask($oldumask);
|
||||
|
||||
if ( ! -e $disk )
|
||||
{
|
||||
logprint( "The partition image creation failed to create $disk.\n" );
|
||||
|
||||
7
debian/changelog
vendored
7
debian/changelog
vendored
@@ -1,3 +1,10 @@
|
||||
xen-tools (3.9-4+lenny1) stable; urgency=low
|
||||
|
||||
* Set umask to 0077 before creating disk images (Closes: #548909)
|
||||
(Cherry-picked dfbf591 from master branch)
|
||||
|
||||
-- Axel Beckert <abe@debian.org> Fri, 19 Nov 2010 20:26:43 +0100
|
||||
|
||||
xen-tools (3.9-4) unstable; urgency=high
|
||||
|
||||
* Changed two defaults in xen-tools.conf to conform
|
||||
|
||||
Reference in New Issue
Block a user