aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/include/netport.h
diff options
context:
space:
mode:
authorJames Morris <jmorris@namei.org>2008-04-14 01:09:53 -0400
committerJames Morris <jmorris@namei.org>2008-04-18 06:26:17 -0400
commit27cc2a6e572e1a86a08a02918517558f175f6974 (patch)
treefdd3d6cbea9807421527ffc4d6fa893f6a182c58 /security/selinux/include/netport.h
parent3e11217263d0521e212cb8a017fbc2a1514db78f (diff)
SELinux: add netport.[ch]
Thank you, git. Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/include/netport.h')
-rw-r--r--security/selinux/include/netport.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/security/selinux/include/netport.h b/security/selinux/include/netport.h
new file mode 100644
index 000000000000..8991752eaf93
--- /dev/null
+++ b/security/selinux/include/netport.h
@@ -0,0 +1,31 @@
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.moore@hp.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
29int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
30
31#endif