Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:security_file_alloc

Proto:int security_file_alloc(struct file *file)

Type:int

Parameter:

TypeParameterName
struct file *file
1384  rc = lsm_file_alloc - allocate a composite file blob*@file: the file that needs a blob* Allocate the file blob for all the modules* Returns 0, or -ENOMEM if memory can't be allocated.
1386  If rc Then Return rc
1388  rc = call_int_hook(file_alloc_security, 0, file)
1389  If Value for the false possibility is greater at compile time(rc) Then security_file_free(file)
1391  Return rc