netport.h (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) netport.h (4ad37de496425b1d2bc4cd923cf94f3e582d5dea)
1/* SPDX-License-Identifier: GPL-2.0-only */
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 *
9 * Author: Paul Moore <paul@paul-moore.com>
10 */
11
12/*
13 * (c) Copyright Hewlett-Packard Development Company, L.P., 2008
14 */
15
16#ifndef _SELINUX_NETPORT_H
17#define _SELINUX_NETPORT_H
18
1/* SPDX-License-Identifier: GPL-2.0-only */
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 *
9 * Author: Paul Moore <paul@paul-moore.com>
10 */
11
12/*
13 * (c) Copyright Hewlett-Packard Development Company, L.P., 2008
14 */
15
16#ifndef _SELINUX_NETPORT_H
17#define _SELINUX_NETPORT_H
18
19#include <linux/types.h>
20
19void sel_netport_flush(void);
20
21int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
22
23#endif
21void sel_netport_flush(void);
22
23int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
24
25#endif