test-ns.c revision ee818b89f4890b3a00e93772249fce810f60811e
18641cb17e2d5e95ba0edfd7f441df1998f8abd2Kay Sievers/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
18641cb17e2d5e95ba0edfd7f441df1998f8abd2Kay Sievers This file is part of systemd.
18641cb17e2d5e95ba0edfd7f441df1998f8abd2Kay Sievers Copyright 2010 Lennart Poettering
18641cb17e2d5e95ba0edfd7f441df1998f8abd2Kay Sievers systemd is free software; you can redistribute it and/or modify it
18641cb17e2d5e95ba0edfd7f441df1998f8abd2Kay Sievers under the terms of the GNU Lesser General Public License as published by
18641cb17e2d5e95ba0edfd7f441df1998f8abd2Kay Sievers the Free Software Foundation; either version 2.1 of the License, or
18641cb17e2d5e95ba0edfd7f441df1998f8abd2Kay Sievers (at your option) any later version.
along with systemd; If not, see <http://www.gnu.org/licenses/>.
#include <stdlib.h>
#include <unistd.h>
#include "namespace.h"
#include "log.h"
const char * const writable[] = {
const char * const readonly[] = {
const char *inaccessible[] = {
char *root_directory;
char *projects_directory;
if (projects_directory)
if (root_directory)
(char **) writable,
(char **) readonly,
(char **) inaccessible,
NULL,
" sudo TEST_NS_CHROOT=/home/alban/debian-tree TEST_NS_PROJECTS=/home/alban/debian-tree/home/alban/Documents ./test-ns");