1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
8 static const LabelOps
*label_ops
= NULL
;
10 int label_ops_set(const LabelOps
*ops
) {
18 int label_ops_pre(int dir_fd
, const char *path
, mode_t mode
) {
19 if (!label_ops
|| !label_ops
->pre
)
22 return label_ops
->pre(dir_fd
, path
, mode
);
25 int label_ops_post(int dir_fd
, const char *path
) {
26 if (!label_ops
|| !label_ops
->post
)
29 return label_ops
->post(dir_fd
, path
);