Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\netif.c Create Date:2022-07-28 19:09:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sel_netif_find - Search for an interface record*@ns: the network namespace*@ifindex: the network interface* Description:* Search the network interface table and return the record matching @ifindex.* If an entry can not be found in the table return NULL.

Proto:static inline struct sel_netif *sel_netif_find(const struct net *ns, int ifindex)

Type:struct sel_netif

Parameter:

TypeParameterName
const struct net *ns
intifindex
71  idx = sel_netif_hashfn - Hashing function for the interface table*@ns: the network namespace*@ifindex: the network interface* Description:* This is the hashing function for the network interface table, it returns the* bucket number for the given interface.
74  list_for_each_entry_rcu - iterate over rcu list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(netif, & sel_netif_hash[idx], list)
75  If net_eq( network namespace , ns) && device index == ifindex Then Return netif
79  Return NULL
Caller
NameDescribe
sel_netif_sid_slowsel_netif_sid_slow - Lookup the SID of a network interface using the policy*@ns: the network namespace*@ifindex: the network interface*@sid: interface SID* Description:* This function determines the SID of a network interface by quering the
sel_netif_sidsel_netif_sid - Lookup the SID of a network interface*@ns: the network namespace*@ifindex: the network interface*@sid: interface SID* Description:* This function determines the SID of a network interface using the fastest* method possible
sel_netif_killsel_netif_kill - Remove an entry from the network interface table*@ns: the network namespace*@ifindex: the network interface* Description:* This function removes the entry matching @ifindex from the network interface* table if it exists.