chiark / gitweb /
1f3eb54d3a974ab3a13ebfa239bae11ca51af7cb
[elogind.git] / src / basic / label.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5   This file is part of systemd.
6
7   Copyright 2010 Lennart Poettering
8 ***/
9
10 #include <stdbool.h>
11 #include <sys/types.h>
12
13 typedef enum LabelFixFlags {
14         LABEL_IGNORE_ENOENT = 1 << 0,
15         LABEL_IGNORE_EROFS  = 1 << 1,
16 } LabelFixFlags;
17
18 int label_fix(const char *path, LabelFixFlags flags);
19
20 int mkdir_label(const char *path, mode_t mode);
21 #if 0 /// UNNEEDED by elogind
22 int symlink_label(const char *old_path, const char *new_path);
23
24 int btrfs_subvol_make_label(const char *path);
25 #endif // 0