2 This file is part of systemd.
4 Copyright 2010 Lennart Poettering
5 Copyright 2013 Kay Sievers
7 systemd is free software; you can redistribute it and/or modify it
8 under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation; either version 2.1 of the License, or
10 (at your option) any later version.
12 systemd is distributed in the hope that it will be useful, but
13 WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 You should have received a copy of the GNU Lesser General Public License
18 along with systemd; If not, see <http://www.gnu.org/licenses/>.
22 #include <sys/types.h>
28 int mkdir_safe_label(const char *path, mode_t mode, uid_t uid, gid_t gid) {
29 return mkdir_safe_internal(path, mode, uid, gid, mkdir_label);
32 #if 0 /// UNNEEDED by elogind
33 int mkdir_parents_label(const char *path, mode_t mode) {
34 return mkdir_parents_internal(NULL, path, mode, mkdir_label);
38 int mkdir_p_label(const char *path, mode_t mode) {
39 return mkdir_p_internal(NULL, path, mode, mkdir_label);