mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
16 lines
427 B
C
16 lines
427 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
#pragma once
|
|
|
|
#include <sys/types.h>
|
|
|
|
typedef struct LabelOps {
|
|
int (*pre)(int dir_fd, const char *path, mode_t mode);
|
|
int (*post)(int dir_fd, const char *path);
|
|
} LabelOps;
|
|
|
|
int label_ops_set(const LabelOps *label_ops);
|
|
|
|
int label_ops_pre(int dir_fd, const char *path, mode_t mode);
|
|
int label_ops_post(int dir_fd, const char *path);
|
|
void label_ops_reset(void);
|