pie: move seccomp before creds to avoid resoring them after setuid
pie: move seccomp before creds to avoid resoring them after setuid

Note that this doesn't actually fix the problem, because seccomp could
block the setuid call, and since we're now restoring when the task isn't
ptraced and in SECCOMP_SUSPEND mode, we can't guarantee that the seccomp
filters won't be suspended.

Signed-off-by: Tycho Andersen <10c18fcb898ee6b17d6575d444b125d10b3f4d6a@canonical.com>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

efiop/criu,wtf42/criu,tych0/criu,eabatalov/criu,efiop/criu,AuthenticEshkinKot/criu,ldu4/criu,AuthenticEshkinKot/criu,svloyso/criu,eabatalov/criu,efiop/criu,ldu4/criu,svloyso/criu,wtf42/criu,KKoukiou/criu-remote,ldu4/criu,ldu4/criu,tych0/criu,eabatalov/criu,KKoukiou/criu-remote,wtf42/criu,tych0/criu,eabatalov/criu,tych0/criu,eabatalov/criu,efiop/criu,KKoukiou/criu-remote,wtf42/criu,AuthenticEshkinKot/criu,svloyso/criu,eabatalov/criu,ldu4/criu,tych0/criu,svloyso/criu,KKoukiou/criu-remote,ldu4/criu,efiop/criu,efiop/criu,wtf42/criu,svloyso/criu,AuthenticEshkinKot/criu,AuthenticEshkinKot/criu,tych0/criu,KKoukiou/criu-remote,wtf42/criu,AuthenticEshkinKot/criu,svloyso/criu,KKoukiou/criu-remote