Function report |
Source Code:security\security.c |
Create Date:2022-07-28 18:38:41 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:lsm_cred_alloc - allocate a composite cred blob*@cred: the cred that needs a blob*@gfp: allocation type* Allocate the cred blob for all the modules* Returns 0, or -ENOMEM if memory can't be allocated.
Proto:static int lsm_cred_alloc(struct cred *cred, gfp_t gfp)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cred * | cred | |
| gfp_t | gfp |
| 495 | If lbs_cred == 0 Then |
| 496 | subjective LSM security = NULL |
| 497 | Return 0 |
| 500 | subjective LSM security = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 501 | If ( subjective LSM security == NULL) Then Return -ENOMEM |
| 503 | Return 0 |
| Name | Describe |
|---|---|
| lsm_early_cred | |
| security_cred_alloc_blank | |
| security_prepare_creds |
| 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 |