[Libguestfs] [PATCH 1/2] Add -u and -g options to febootstrap-supermin-helper

Matthew Booth mbooth at redhat.com
Thu Oct 28 14:17:21 UTC 2010


Bash automatically resets euid to uid when it executes. This means that the
effective user id of a program at the point it calls febootstrap-supermin-helper
will be lost if any part of execution chain involved bash. This in turn can
result in:

* the generation of an incorrect checksum, which contains the uid.
* the generation of supermin files with a mixture of owners

The -u and -g options allow the caller to pass in an explicit user and group to
run as. febootstrap-supermin-helper will set(u|g)id as appropriate.
---
 helper/febootstrap-supermin-helper.pod |   13 ++++
 helper/main.c                          |  116 +++++++++++++++++++++++++++++++-
 lib/.gitignore                         |   10 +++
 m4/.gitignore                          |    4 +
 m4/gnulib-cache.m4                     |    3 +-
 5 files changed, 142 insertions(+), 4 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-u-and-g-options-to-febootstrap-supermin-helper.patch
Type: text/x-patch
Size: 7050 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20101028/efdac26a/attachment.bin>


More information about the Libguestfs mailing list