Linux Audio

Check our new training course

Loading...
v4.6
 
 1/*
 2 * Network port table
 3 *
 4 * SELinux must keep a mapping of network ports to labels/SIDs.  This
 5 * mapping is maintained as part of the normal policy but a fast cache is
 6 * needed to reduce the lookup overhead.
 7 *
 8 * Author: Paul Moore <paul@paul-moore.com>
 9 *
10 */
11
12/*
13 * (c) Copyright Hewlett-Packard Development Company, L.P., 2008
14 *
15 * This program is free software: you can redistribute it and/or modify
16 * it under the terms of version 2 of the GNU General Public License as
17 * published by the Free Software Foundation.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 * GNU General Public License for more details.
23 *
24 */
25
26#ifndef _SELINUX_NETPORT_H
27#define _SELINUX_NETPORT_H
 
 
28
29void sel_netport_flush(void);
30
31int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
32
33#endif
v6.8
 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
21void sel_netport_flush(void);
22
23int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
24
25#endif