netport.c (3eb66e91a25497065c5322b1268cbc3953642227) | netport.c (5b497af42fab12cadc0e29bcb7052cf9963603f5) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only |
|
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 * This code is heavily based on the "netif" concept originally developed by 11 * James Morris <jmorris@redhat.com> 12 * (see security/selinux/netif.c for more information) | 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 * This code is heavily based on the "netif" concept originally developed by 12 * James Morris <jmorris@redhat.com> 13 * (see security/selinux/netif.c for more information) |
13 * | |
14 */ 15 16/* 17 * (c) Copyright Hewlett-Packard Development Company, L.P., 2008 | 14 */ 15 16/* 17 * (c) Copyright Hewlett-Packard Development Company, L.P., 2008 |
18 * 19 * This program is free software: you can redistribute it and/or modify 20 * it under the terms of version 2 of the GNU General Public License as 21 * published by the Free Software Foundation. 22 * 23 * This program is distributed in the hope that it will be useful, 24 * but WITHOUT ANY WARRANTY; without even the implied warranty of 25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26 * GNU General Public License for more details. 27 * | |
28 */ 29 30#include <linux/types.h> 31#include <linux/rcupdate.h> 32#include <linux/list.h> 33#include <linux/slab.h> 34#include <linux/spinlock.h> 35#include <linux/in.h> --- 216 unchanged lines hidden --- | 18 */ 19 20#include <linux/types.h> 21#include <linux/rcupdate.h> 22#include <linux/list.h> 23#include <linux/slab.h> 24#include <linux/spinlock.h> 25#include <linux/in.h> --- 216 unchanged lines hidden --- |