_cleanup_strv_free_ char **rw = NULL, **empty_directories = NULL;
char *tmp = NULL, *var = NULL;
const char *root_dir = NULL, *root_image = NULL;
- NameSpaceInfo ns_info = {
+ NamespaceInfo ns_info = {
.ignore_protect_paths = false,
.private_dev = context->private_devices,
.protect_control_groups = context->protect_control_groups,
return r;
}
-static bool namespace_info_mount_apivfs(const char *root_directory, const NameSpaceInfo *ns_info) {
+static bool namespace_info_mount_apivfs(const char *root_directory, const NamespaceInfo *ns_info) {
assert(ns_info);
/*
static unsigned namespace_calculate_mounts(
const char* root_directory,
- const NameSpaceInfo *ns_info,
+ const NamespaceInfo *ns_info,
char** read_write_paths,
char** read_only_paths,
char** inaccessible_paths,
int setup_namespace(
const char* root_directory,
const char* root_image,
- const NameSpaceInfo *ns_info,
+ const NamespaceInfo *ns_info,
char** read_write_paths,
char** read_only_paths,
char** inaccessible_paths,
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-typedef struct NameSpaceInfo NameSpaceInfo;
+typedef struct NamespaceInfo NamespaceInfo;
typedef struct BindMount BindMount;
#include <stdbool.h>
_PROTECT_SYSTEM_INVALID = -1
} ProtectSystem;
-struct NameSpaceInfo {
+struct NamespaceInfo {
bool ignore_protect_paths:1;
bool private_dev:1;
bool protect_control_groups:1;
int setup_namespace(
const char *root_directory,
const char *root_image,
- const NameSpaceInfo *ns_info,
+ const NamespaceInfo *ns_info,
char **read_write_paths,
char **read_only_paths,
char **inaccessible_paths,
NULL
};
- static const NameSpaceInfo ns_info = {
+ static const NamespaceInfo ns_info = {
.private_dev = true,
.protect_control_groups = true,
.protect_kernel_tunables = true,