Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Network interface table.
0004  *
0005  * Network interfaces (devices) do not have a security field, so we
0006  * maintain a table associating each interface with a SID.
0007  *
0008  * Author: James Morris <jmorris@redhat.com>
0009  *
0010  * Copyright (C) 2003 Red Hat, Inc., James Morris <jmorris@redhat.com>
0011  * Copyright (C) 2007 Hewlett-Packard Development Company, L.P.
0012  *                    Paul Moore <paul@paul-moore.com>
0013  */
0014 #ifndef _SELINUX_NETIF_H_
0015 #define _SELINUX_NETIF_H_
0016 
0017 #include <net/net_namespace.h>
0018 
0019 void sel_netif_flush(void);
0020 
0021 int sel_netif_sid(struct net *ns, int ifindex, u32 *sid);
0022 
0023 #endif  /* _SELINUX_NETIF_H_ */
0024