CKM: Gdbbacktrace tries to become root 15/39915/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 26 May 2015 09:51:44 +0000 (11:51 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 26 May 2015 09:55:41 +0000 (11:55 +0200)
commit44191f93cbabfeb050697b85fcd444159e19949a
tree0967269bc539cf427cab0e9c3d6de8d3ff014645
parent64bdaaa36c9fd5b8b88b4b10ab58c1e745e3d7c8
CKM: Gdbbacktrace tries to become root

[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
src/framework/src/gdbbacktrace.cpp