src/basic/label-util.h
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | #pragma once |
| 3 | |
| 4 | #include "basic-forward.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, bool created); |
| 9 | } LabelOps; |
| 10 | |
| 11 | int label_ops_set(const LabelOps *label_ops); |
| 12 | void label_ops_reset(void); |
| 13 | |
| 14 | int label_ops_pre(int dir_fd, const char *path, mode_t mode); |
| 15 | int label_ops_post(int dir_fd, const char *path, bool created); |