[+] StartupParameters::posixApplySandboxCOW
This commit is contained in:
parent
730465ca2b
commit
e05bb8f5dc
@ -95,5 +95,8 @@ namespace Aurora::Processes
|
||||
void *> ntLikeHookCreateProcessW;
|
||||
#endif
|
||||
#endif
|
||||
#if defined(AURORA_IS_POSIX_DERIVED)
|
||||
AuVoidFunc posixApplySandboxCOW;
|
||||
#endif
|
||||
};
|
||||
}
|
@ -647,6 +647,11 @@ namespace Aurora::Processes
|
||||
#endif
|
||||
}
|
||||
|
||||
if (this->startup_.posixApplySandboxCOW)
|
||||
{
|
||||
this->startup_.posixApplySandboxCOW();
|
||||
}
|
||||
|
||||
::execv(this->startup_.process.c_str(), (char * const *)this->cargs_.data()); // https://pubs.opengroup.org/onlinepubs/9699919799/functions/exec.html
|
||||
|
||||
SysPushErrorGen("execv didn't overwrite the process map. Launch: {} ({})", this->startup_.process, this->debug_);
|
||||
|
Loading…
Reference in New Issue
Block a user