/
niceSOFT
/
systemd
Обзор
Документация
Войти
/
niceSOFT
/
systemd
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/basic/label-util.h
15 строк
569 B
Simon de Vlieger
label: plumb label_context through LabelOps
31 июл 2026, 10:49
31 июл 2026, 10:49
6b0e3ea
Код
Авторство
О чём код?
/* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include "forward.h" typedef struct LabelOps { int (*pre)(int dir_fd, const char *path, mode_t mode, LabelContext *label_context); int (*post)(int dir_fd, const char *path, bool created, LabelContext *label_context); } LabelOps; int label_ops_set(const LabelOps *label_ops); void label_ops_reset(void); int label_ops_pre(int dir_fd, const char *path, mode_t mode, LabelContext *label_context); int label_ops_post(int dir_fd, const char *path, bool created, LabelContext *label_context);