]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/label.h
label: Introduce LabelOps to do pre/post labelling operations
[thirdparty/systemd.git] / src / basic / label.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include <sys/types.h>
5
6 typedef struct LabelOps {
7 int (*pre)(int dir_fd, const char *path, mode_t mode);
8 int (*post)(int dir_fd, const char *path);
9 } LabelOps;
10
11 int label_ops_set(const LabelOps *label_ops);
12
13 int label_ops_pre(int dir_fd, const char *path, mode_t mode);
14 int label_ops_post(int dir_fd, const char *path);