1
0
mirror of synced 2026-02-20 05:45:15 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Axel Beckert
61fe6248dc Finish changelog entry 2010-11-20 15:49:49 +01:00
Axel Beckert
b8877e9f57 Set umask to 0077 before creating disk images 2010-08-31 23:27:47 +02:00
2 changed files with 15 additions and 0 deletions

View File

@@ -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
View File

@@ -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