Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_tun_dev_alloc_security

Proto:static int selinux_tun_dev_alloc_security(void **security)

Type:int

Parameter:

TypeParameterName
void **security
5452  tunsec = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
5453  If Not tunsec Then Return -ENOMEM
5455  SID for the tun device sockets = get the subjective security ID of the current task
5457  security = tunsec
5458  Return 0