函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_init - initialize the smack system* Returns 0 on success, -ENOMEM is there's no memory

函数原型:static __init int smack_init(void)

返回类型:int

参数:

4765  cred等于cred
4768  smack_inode_cache等于Please use this macro to create slab caches. Simply specify the* name of the structure and maybe some flags that are listed above.* The alignment of the struct determines object alignment. If you* f(inode_smack, 0)
4769  如果非smack_inode_cache则返回:负ENOMEM
4772  smack_rule_cache等于Please use this macro to create slab caches. Simply specify the* name of the structure and maybe some flags that are listed above.* The alignment of the struct determines object alignment. If you* f(smack_rule, 0)
4773  如果非smack_rule_cache
4774  删除高速缓存区
4775  返回:负ENOMEM
4781  tsp等于smack_cred(cred)
4782  _task_smack - initialize a task security blob*@tsp: blob to initialize*@task: a pointer to the Smack label for the running task*@forked: a pointer to the Smack label for the forked task
4787  security_add_hooks - Add a modules hooks to the hook lists.*@hooks: the hooks to add*@count: the number of hooks to add*@lsm: the name of the security module* Each LSM has to register its hooks with the infrastructure.
4788  smack_enabled等于1
4790  打印信息("Smack: Initializing.\n")
4792  打印信息("Smack: Netfilter enabled.\n")
4795  打印信息("Smack: IPv6 port labeling enabled.\n")
4798  打印信息("Smack: IPv6 Netfilter enabled.\n")
4802  init_smack_known_list()
4804  返回:0