Function report |
Source Code:security\smack\smack_lsm.c |
Create Date:2022-07-28 19:25:07 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smack_init - initialize the smack system* Returns 0 on success, -ENOMEM is there's no memory
Proto:static __init int smack_init(void)
Type:int
Parameter:Nothing
| 4769 | If Not smack_inode_cache Then Return -ENOMEM |
| 4773 | If Not smack_rule_cache Then |
| 4775 | Return -ENOMEM |
| 4781 | tsp = smack_cred(cred) |
| 4788 | smack_enabled = 1 |
| 4790 | pr_info("Smack: Initializing.\n") |
| 4792 | pr_info("Smack: Netfilter enabled.\n") |
| 4795 | pr_info("Smack: IPv6 port labeling enabled.\n") |
| 4798 | pr_info("Smack: IPv6 Netfilter enabled.\n") |
| 4802 | init_smack_known_list() |
| 4804 | Return 0 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |