diff options
author | Richard Jones <rjones@redhat.com> | 2010-07-02 17:52:51 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-07-07 15:03:51 +0100 |
commit | 49a71a4c606d52f78c364860a8917cf1076169e7 (patch) | |
tree | 34a8f6c680e3fcec736b7d4dfaabc46125f4b391 /po | |
parent | 8161ea9bb046c8450384b5b15e1f4b2f3dca582b (diff) | |
download | libguestfs-49a71a4c606d52f78c364860a8917cf1076169e7.tar.gz libguestfs-49a71a4c606d52f78c364860a8917cf1076169e7.tar.xz libguestfs-49a71a4c606d52f78c364860a8917cf1076169e7.zip |
Make tmp directory world readable (RHBZ#610880).
If you have a restrictive umask (0077 for example) then
files in the tmp directory would be created with 0600
permissions. Example:
drwx------. 2 rjones rjones 4096 Jul 2 17:52 .
drwxrwxrwt. 57 root root 102400 Jul 2 17:52 ..
-rw-------. 1 rjones rjones 86328832 Jul 2 17:52 initrd
lrwxrwxrwx. 1 rjones rjones 46 Jul 2 17:52 kernel -> /boot/vmlinuz-2.6.33-0.40.rc7.git0.fc13.x86_64
This in itself is not a problem. However in virt-v2v we also
change UID:GID and the result is that qemu is unable to read
the initrd file:
qemu: could not load initial ram disk '/tmp/libguestfs2ssynP/initrd'
With this patch we make the tmp directory and the files
world readable. After the patch:
$ ls -la /tmp/libguestfsJFVzPg/
total 116192
drwxr-xr-x. 2 rjones rjones 4096 Jul 2 18:03 .
drwxrwxrwt. 56 root root 102400 Jul 2 18:03 ..
-rw-r--r--. 1 rjones rjones 118869504 Jul 2 18:03 initrd
lrwxrwxrwx. 1 rjones rjones 46 Jul 2 18:03 kernel -> /boot/vmlinuz-2.6.33-0.40.rc7.git0.fc13.x86_64
Diffstat (limited to 'po')
0 files changed, 0 insertions, 0 deletions