mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
init: Disable syscall sandbox in the bitcoin-qt process
This commit is contained in:
parent
24c6b20c14
commit
fa0c2aa826
5 changed files with 6 additions and 7 deletions
|
|
@ -792,7 +792,7 @@ bool AppInitBasicSetup(const ArgsManager& args)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool AppInitParameterInteraction(const ArgsManager& args)
|
||||
bool AppInitParameterInteraction(const ArgsManager& args, bool use_syscall_sandbox)
|
||||
{
|
||||
const CChainParams& chainparams = Params();
|
||||
// ********************************************************* Step 2: parameter interactions
|
||||
|
|
@ -1058,6 +1058,9 @@ bool AppInitParameterInteraction(const ArgsManager& args)
|
|||
if (!SetupSyscallSandbox(log_syscall_violation_before_terminating)) {
|
||||
return InitError(Untranslated("Installation of the syscall sandbox failed."));
|
||||
}
|
||||
if (use_syscall_sandbox) {
|
||||
SetSyscallSandboxPolicy(SyscallSandboxPolicy::INITIALIZATION);
|
||||
}
|
||||
LogPrintf("Experimental syscall sandbox enabled (-sandbox=%s): bitcoind will terminate if an unexpected (not allowlisted) syscall is invoked.\n", sandbox_arg);
|
||||
}
|
||||
#endif // USE_SYSCALL_SANDBOX
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue