[+] StartupParameters::posixApplySandboxCOW

This commit is contained in:
Reece Wilson 2023-12-22 03:57:46 +00:00
parent 730465ca2b
commit e05bb8f5dc
2 changed files with 8 additions and 0 deletions

View File

@ -95,5 +95,8 @@ namespace Aurora::Processes
void *> ntLikeHookCreateProcessW;
#endif
#endif
#if defined(AURORA_IS_POSIX_DERIVED)
AuVoidFunc posixApplySandboxCOW;
#endif
};
}

View File

@ -646,6 +646,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