Commit | Line | Data |
---|---|---|
5b497af4 | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
27cc2a6e JM |
2 | /* |
3 | * Network port table | |
4 | * | |
5 | * SELinux must keep a mapping of network ports to labels/SIDs. This | |
6 | * mapping is maintained as part of the normal policy but a fast cache is | |
7 | * needed to reduce the lookup overhead. | |
8 | * | |
82c21bfa | 9 | * Author: Paul Moore <paul@paul-moore.com> |
27cc2a6e JM |
10 | */ |
11 | ||
12 | /* | |
13 | * (c) Copyright Hewlett-Packard Development Company, L.P., 2008 | |
27cc2a6e JM |
14 | */ |
15 | ||
16 | #ifndef _SELINUX_NETPORT_H | |
17 | #define _SELINUX_NETPORT_H | |
18 | ||
4ad37de4 CG |
19 | #include <linux/types.h> |
20 | ||
615e51fd PM |
21 | void sel_netport_flush(void); |
22 | ||
27cc2a6e JM |
23 | int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid); |
24 | ||
25 | #endif |