函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_setprocattr - Smack process attribute setting*@name: the name of the attribute in /proc/

函数原型:static int smack_setprocattr(const char *name, void *value, size_t size)

返回类型:int

参数:

类型参数名称
const char *name
void *value
size_tsize
3519  tsp等于smack_cred(current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.())
3525  如果非smack_privileged(Allow MAC configuration or state changes)且链表为空则返回:负EPERM
3528  如果value恒等于NULLsize恒等于0或size大于等于SMK_LONGLABEL则返回:负EINVAL
3531  如果字符串比较不等于0则返回:负EINVAL
3534  skp等于smk_import_entry(value, size)
3535  如果是错误则返回:错误
3542  如果skp恒等于smack_known_webskp恒等于smack_known_star则返回:负EINVAL
3545  如果非smack_privileged(Allow MAC configuration or state changes)则
3546  rc等于负EPERM
3547  list_for_each_entry - iterate over 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.(sklep, & transit allowed labels , list)
3548  如果smk_label恒等于skp
3549  rc等于0
3550  退出
3552  如果rc则返回:rc
3556  new等于prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification
3557  如果(new == NULL)则返回:负ENOMEM
3560  tsp等于smack_cred(new)
3561  label for access control 等于skp
3565  smk_destroy_label_list( & transit allowed labels )
3567  mmit_creds - Install new credentials upon the current task*@new: The credentials to be assigned* Install a new set of credentials to the current task, using RCU to replace* the old set. Both the objective and the subjective credentials pointers are
3568  返回:size