Skip to content
API Documentation
BastionGuard™
Policy.cpp
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
3
5
6const char* toString(const Mode mode) noexcept
7{
8 return mode == Mode::Enforce ? "enforce" : "audit";
9}
10
11const char* toString(const Action action) noexcept
12{
13 return action == Action::Block ? "block" : "audit";
14}
15
16} // namespace bastionguard::rootguard
const char * toString(Mode mode) noexcept
Definition Policy.cpp:6