security: Check not only real user ID
security: Check not only real user ID

When dumping/restoring for unpriveledged user, check for all
sets of IDs to match, just like ptrace-may-attach in the kernel.

Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

ldu4/criu,ldu4/criu,rentzsch/criu,sdgdsffdsfff/criu,sdgdsffdsfff/criu,marcosnils/criu,LK4D4/criu,rentzsch/criu,eabatalov/criu,svloyso/criu,fbocharov/criu,fbocharov/criu,kawamuray/criu,kawamuray/criu,gonkulator/criu,rentzsch/criu,AuthenticEshkinKot/criu,svloyso/criu,sdgdsffdsfff/criu,LK4D4/criu,marcosnils/criu,marcosnils/criu,efiop/criu,gablg1/criu,rentzsch/criu,tych0/criu,wtf42/criu,rentzsch/criu,sdgdsffdsfff/criu,rentzsch/criu,biddyweb/criu,LK4D4/criu,AuthenticEshkinKot/criu,wtf42/criu,LK4D4/criu,ldu4/criu,gonkulator/criu,wtf42/criu,sdgdsffdsfff/criu,svloyso/criu,eabatalov/criu,gonkulator/criu,gablg1/criu,kawamuray/criu,tych0/criu,ldu4/criu,fbocharov/criu,kawamuray/criu,tych0/criu,svloyso/criu,marcosnils/criu,fbocharov/criu,biddyweb/criu,wtf42/criu,KKoukiou/criu-remote,tych0/criu,biddyweb/criu,marcosnils/criu,biddyweb/criu,ldu4/criu,biddyweb/criu,eabatalov/criu,eabatalov/criu,eabatalov/criu,marcosnils/criu,KKoukiou/criu-remote,gonkulator/criu,efiop/criu,svloyso/criu,AuthenticEshkinKot/criu,sdgdsffdsfff/criu,AuthenticEshkinKot/criu,LK4D4/criu,kawamuray/criu,wtf42/criu,gablg1/criu,fbocharov/criu,ldu4/criu,gablg1/criu,LK4D4/criu,AuthenticEshkinKot/criu,KKoukiou/criu-remote,KKoukiou/criu-remote,svloyso/criu,gonkulator/criu,efiop/criu,eabatalov/criu,kawamuray/criu,efiop/criu,KKoukiou/criu-remote,gablg1/criu,tych0/criu,KKoukiou/criu-remote,AuthenticEshkinKot/criu,wtf42/criu,biddyweb/criu,gonkulator/criu,tych0/criu,gablg1/criu,fbocharov/criu,efiop/criu,efiop/criu