namespace.h revision d8c9d3a468e61ee2a2b2c3454e662398b0885411
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering#pragma once
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering/***
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering This file is part of systemd.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering Copyright 2010 Lennart Poettering
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering systemd is free software; you can redistribute it and/or modify it
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering under the terms of the GNU Lesser General Public License as published by
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering the Free Software Foundation; either version 2.1 of the License, or
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering (at your option) any later version.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering systemd is distributed in the hope that it will be useful, but
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering Lesser General Public License for more details.
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering You should have received a copy of the GNU Lesser General Public License
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
87f5a19343acf8ba697acc5a62bdb1a2b8c9eda3Lennart Poettering***/
87f5a19343acf8ba697acc5a62bdb1a2b8c9eda3Lennart Poettering
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering#include <stdbool.h>
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering
9df3ba6c6cb65eecec06f39dfe85a3596cedac4eTom Gundersenint setup_tmpdirs(const char *unit_id,
9df3ba6c6cb65eecec06f39dfe85a3596cedac4eTom Gundersen char **tmp_dir,
9df3ba6c6cb65eecec06f39dfe85a3596cedac4eTom Gundersen char **var_tmp_dir);
9df3ba6c6cb65eecec06f39dfe85a3596cedac4eTom Gundersen
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poetteringint setup_namespace(char **read_write_dirs,
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering char **read_only_dirs,
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering char **inaccessible_dirs,
4e945a6f7971fd7d1f6b2c62ee3afdaff3c95ce4Lennart Poettering char *tmp_dir,
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering char *var_tmp_dir,
0dd25fb9f005d8ab7ac4bc10a609d00569f8c56aLennart Poettering bool private_tmp,
3c0cf502796be355431d4a64d738e75f543aa51dLennart Poettering unsigned mount_flags);
74b2466e14a1961bf3ac0e8a60cfaceec705bd59Lennart Poettering