函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smackfs.c Create Date:2022-07-27 20:57:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:smk_parse_label_list - parse list of Smack labels, separated by spaces*@data: the string to parse*@private: destination list* Returns zero on success or error code, as appropriate

函数原型:static int smk_parse_label_list(char *data, struct list_head *list)

返回类型:int

参数:

类型参数名称
char *data
struct list_head *list
1937  当((tok = 分割字符串) != NULL)循环
1938  如果非tok则继续下一循环
1941  skp等于smk_import_entry - import a label, return the list entry*@string: a text string that might be a Smack label*@len: the maximum size, or zero if it is NULL terminated
1942  如果是错误则返回:错误
1945  sklep等于分配内存并置零
1946  如果(sklep == NULL)则返回:负ENOMEM
1949  smk_label等于skp
1950  添加链表项
1953  返回:0
调用者
名称描述
smk_write_onlycapsmk_write_onlycap - write() for smackfs/onlycap*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start* Returns number of bytes written or error code, as appropriate
smk_write_relabel_selfsmk_write_relabel_self - write() for /smack/relabel-self*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start - must be 0