summaryrefslogtreecommitdiffstats
path: root/src/launch.c
diff options
context:
space:
mode:
authorMatthew Booth <mbooth@redhat.com>2010-10-28 15:19:13 +0100
committerRichard W.M. Jones <rjones@redhat.com>2010-10-28 16:17:38 +0100
commit38af2eaceb4c8e9d675835bcd6e598ccb67daf0f (patch)
tree512159dc71c49b91b2c58ff0c71dfecc9eb19087 /src/launch.c
parentcf8add59d297d196facc2d0b9af45bb1d7946344 (diff)
downloadlibguestfs-38af2eaceb4c8e9d675835bcd6e598ccb67daf0f.tar.gz
libguestfs-38af2eaceb4c8e9d675835bcd6e598ccb67daf0f.tar.xz
libguestfs-38af2eaceb4c8e9d675835bcd6e598ccb67daf0f.zip
Call febootstrap-supermin-helper using the new -u and -g options
Use febootstrap-supermin-helper's new -u and -g command line options to setuid, rather than doing it in libguestfs. This resolves an issue with the generation of the cached appliance checksum. The checksum was being generated by a call to febootstrap-supermin-helper through popen(). Unfortunately, a bash misfeature meant that euid would be reset to uid, and the checksum was generated for uid, not euid. When virt-v2v is writing to a RHEV target, uid == 0 and euid == 36, which resulted in a cached appliance being created for root with permissions for uid 36. Note this requires febootstrap 2.10.
Diffstat (limited to 'src/launch.c')
0 files changed, 0 insertions, 0 deletions