/** * @file Security.cpp * @author apio (cloudapio.eu) * @brief Functions to restrict process operations. * * @copyright Copyright (c) 2023, the Luna authors. * */ #include #include #include namespace os::Security { Result pledge(const char* promises, const char* execpromises) { int rc = ::pledge(promises, execpromises); if (rc < 0) return err(errno); return {}; } }