FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
bwrap_apparmor.cpp File Reference

Configures apparmor to allow the execution of bubblewrap More...

#include <filesystem>
#include "../std/expected.hpp"
#include "../lib/log.hpp"
#include "../lib/subprocess.hpp"
#include "../lib/env.hpp"
#include "../macro.hpp"
Include dependency graph for bwrap_apparmor.cpp:

Go to the source code of this file.

Functions

int main (int argc, char const *argv[])
 Entry point for the apparmor configuration utility.
 

Variables

constexpr std::string_view const profile_bwrap
 

Detailed Description

Configures apparmor to allow the execution of bubblewrap

Author
Ruan Formigoni

Definition in file bwrap_apparmor.cpp.

Function Documentation

◆ main()

int main ( int argc,
char const * argv[] )

Entry point for the apparmor configuration utility.

Parameters
argcArgument count
argvArgument vector
Returns
int Exit code (0 for success, non-zero for failure)

Definition at line 34 of file bwrap_apparmor.cpp.

Here is the call graph for this function:

Variable Documentation

◆ profile_bwrap

std::string_view const profile_bwrap
constexpr
Initial value:
=
R"(abi <abi/4.0>,
include <tunables/global>
profile bwrap /opt/flatimage/bwrap flags=(unconfined) {
userns,
}
)"

Definition at line 17 of file bwrap_apparmor.cpp.