]>
Commit | Line | Data |
---|---|---|
948def4a | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
6f50d4f7 MV |
2 | #pragma once |
3 | ||
4 | #include "fdset.h" | |
5 | #include "unit.h" | |
6 | ||
7 | typedef struct Unit Unit; | |
8 | ||
9 | int restrict_network_interfaces_supported(void); | |
10 | int restrict_network_interfaces_install(Unit *u); | |
11 | ||
12 | int serialize_restrict_network_interfaces(Unit *u, FILE *f, FDSet *fds); | |
13 | ||
14 | /* Add BPF link fd created before daemon-reload or daemon-reexec. | |
15 | * FDs will be closed at the end of restrict_network_interfaces_install. */ | |
16 | int restrict_network_interfaces_add_initial_link_fd(Unit *u, int fd); |