Add -u and -g options to febootstrap-supermin-helper
authorMatthew Booth <mbooth@redhat.com>
Thu, 28 Oct 2010 14:17:21 +0000 (15:17 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 28 Oct 2010 15:05:09 +0000 (16:05 +0100)
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.


No differences found