Skip to content
API Documentation
BastionGuard™
privilege_utils.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
6public:
7 static bool is_running_as_root();
8 static bool can_read_source(const std::string& path);
9 static std::string self_executable_path();
10 static std::string shell_quote(const std::string& s);
11 static std::string build_pkexec_relaunch_command(const std::string& extra_args = "");
12 static bool launch_pkexec_relaunch(std::string& error, const std::string& extra_args = "");
13};
static std::string build_pkexec_relaunch_command(const std::string &extra_args="")
static std::string shell_quote(const std::string &s)
static std::string self_executable_path()
static bool is_running_as_root()
static bool launch_pkexec_relaunch(std::string &error, const std::string &extra_args="")
static bool can_read_source(const std::string &path)