libstore: fix personality setting for unsandboxed linux builds
oops. this was supposed to always happen on function exit. Change-Id: I25465b4248c33389ca7e70b2a0b52dcc10d86a38
This commit is contained in:
@@ -1094,6 +1094,8 @@ bool LinuxLocalDerivationGoal::prepareChildSetup()
|
||||
{
|
||||
setupSyscallFilter();
|
||||
|
||||
KJ_DEFER(setPersonality(drv->platform));
|
||||
|
||||
if (!useChroot) {
|
||||
return true;
|
||||
}
|
||||
@@ -1352,8 +1354,6 @@ bool LinuxLocalDerivationGoal::prepareChildSetup()
|
||||
}
|
||||
}
|
||||
|
||||
setPersonality(drv->platform);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user