Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sel_netif_insert - Insert a new interface into the table*@netif: the new interface record* Description:* Add a new interface record to the network interface hash table. Returns* zero on success, negative values on failure.

Proto:static int sel_netif_insert(struct sel_netif *netif)

Type:int

Parameter:

TypeParameterName
struct sel_netif *netif
95  If sel_netif_total >= SEL_NETIF_HASH_MAX Then Return -ENOSPC
98  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.
99  list_add_rcu - add a new entry to rcu-protected list*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head
100  sel_netif_total++
102  Return 0
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