]>
Commit | Line | Data |
---|---|---|
184b4f78 ILG |
1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
2 | #pragma once | |
3 | ||
836e4e7e | 4 | #include "core-forward.h" |
184b4f78 | 5 | |
e59ccd03 ILG |
6 | typedef enum FilesystemParseFlags { |
7 | FILESYSTEM_PARSE_INVERT = 1 << 0, | |
8 | FILESYSTEM_PARSE_ALLOW_LIST = 1 << 1, | |
9 | FILESYSTEM_PARSE_LOG = 1 << 2, | |
10 | } FilesystemParseFlags; | |
11 | ||
352ec23c LP |
12 | bool bpf_restrict_fs_supported(bool initialize); |
13 | int bpf_restrict_fs_setup(Manager *m); | |
14 | int bpf_restrict_fs_update(const Set *filesystems, uint64_t cgroup_id, int outer_map_fd, bool allow_list); | |
9cc54544 | 15 | int bpf_restrict_fs_cleanup(Unit *u); |
352ec23c LP |
16 | int bpf_restrict_fs_map_fd(Unit *u); |
17 | void bpf_restrict_fs_destroy(struct restrict_fs_bpf *prog); | |
18 | int bpf_restrict_fs_parse_filesystem(const char *name, Set **filesystems, FilesystemParseFlags flags, const char *unit, const char *filename, unsigned line); |