[CRIU] [PATCH] security: skip obtaining additional groups for root, as they don't matter

Pavel Emelyanov xemul at parallels.com
Wed Aug 6 07:59:01 PDT 2014


On 08/06/2014 06:53 PM, Christopher Covington wrote:
> On 08/06/2014 10:49 AM, Ruslan Kuprieiev wrote:
>> As it was reported, some systems don't use /etc/passwd.
>> On such systems getpwuid fails with undefined errno(see getpwuid(3))
>> not allowing criu to restrict ids with user additional groups.
>> Luckily, on such systems criu is run as root, so we can
>> just skip obtaining additional groups, as they don't matter
>> for root.
> 
> Thanks for the quick fix. This gets the test suite rolling again for me.
> 
> Tested-by: Christopher Covington <cov at codeaurora.org>
> 
Applied, thanks everyone.


More information about the CRIU mailing list