Skip to content
API Documentation
BastionGuard™
SystemServiceControl.cpp File Reference

Go to the source code of this file.

Classes

struct  bastionguard::rootguard::anonymous_namespace{SystemServiceControl.cpp}::CommandResult

Namespaces

namespace  bastionguard
namespace  bastionguard::rootguard
namespace  bastionguard::rootguard::anonymous_namespace{SystemServiceControl.cpp}

Functions

bool bastionguard::rootguard::anonymous_namespace{SystemServiceControl.cpp}::executableExists (const char *path) noexcept
std::string bastionguard::rootguard::anonymous_namespace{SystemServiceControl.cpp}::firstExecutable (std::initializer_list< const char * > candidates)
CommandResult bastionguard::rootguard::anonymous_namespace{SystemServiceControl.cpp}::runCommand (const std::vector< std::string > &arguments) noexcept
bool bastionguard::rootguard::anonymous_namespace{SystemServiceControl.cpp}::startsWithPath (const std::filesystem::path &path, const std::filesystem::path &prefix) noexcept
bool bastionguard::rootguard::anonymous_namespace{SystemServiceControl.cpp}::isSystemdUnitExtension (const std::string &extension)
std::optional< std::string > bastionguard::rootguard::anonymous_namespace{SystemServiceControl.cpp}::systemdUnitName (const std::filesystem::path &path)
ServiceActionResult bastionguard::rootguard::anonymous_namespace{SystemServiceControl.cpp}::resultFrom (const std::string &operation, const ServiceTarget &target, const std::vector< CommandResult > &results)
InitSystem bastionguard::rootguard::detectInitSystem () noexcept
const char * bastionguard::rootguard::toString (InitSystem init) noexcept
std::optional< ServiceTarget > bastionguard::rootguard::identifySystemService (const std::filesystem::path &path) noexcept
ServiceActionResult bastionguard::rootguard::blockSystemService (const std::filesystem::path &path) noexcept
ServiceActionResult bastionguard::rootguard::unblockSystemService (const std::filesystem::path &path) noexcept