I think we still have grey areas when working under sudo, but this patch doesn't make things worse in that respect and we need to fix the regression.
A further submission may create a specific test suite that we can run under sudo (depending on a feature and/or using the test_suite_factory parameter of bt.selftest) so we can run it on a dedicated slave on babune. I've filed bug #608216 for that.
I think we still have grey areas when working under sudo, but this patch doesn't make things worse in that respect and we need to fix the regression.
A further submission may create a specific test suite that we can run under sudo (depending on a feature and/or using the test_suite_factory parameter of bt.selftest) so we can run it on a dedicated slave on babune. I've filed bug #608216 for that.