[Problem] When gdbbacktrace is executed as ordinary user it has no permissions
to attach with gdb or unlink output file.
[Solution] Add seteuid/gid(0) in the beginning of gdbbacktrace.
[Verification] Run any failing test that uses ScopedAccessProvider with uid/gid
There should be no "gdbbacktrace() failed: No backtrace information"
Change-Id: I8997ad1d8d1368402333e40b55ee4f5cb1b79005
{
std::string ret;
+ // Try to become root again so gdb and unlink is possible
+ setegid(0);
+ seteuid(0);
pid_t childPid = fork();
switch (childPid) {
case -1: