// overlayns // (c) 2021 Taeyeon Mori #include #include #include #include #include #include #include #include #include #include #include "kons_clone.hpp" using namespace ko; using namespace std::literals::string_literals; using namespace std::literals::string_view_literals; static constexpr auto vers = "0.5"sv; void usage(char const * prog) { printf("Synopsis: %s [-h] [-o ovl-spec]... [-m mnt-spec]... \n" "\n" "Run a command in it's own mount namespace\n" "\n" "Spec options:\n" " -m mnt-spec Add a mount to the namespace\n" " -o ovl-spec Add an overlay to the namespace\n" " -N Run in an empty network namespace\n" "\n" "Mount spec:\n" " A mount specification takes the following format:\n" " -m ,,[,