Function report |
Source Code:security\selinux\hooks.c |
Create Date:2022-07-28 19:02:38 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:selinux_key_alloc
Proto:static int selinux_key_alloc(struct key *k, const struct cred *cred, unsigned long flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct key * | k | |
| const struct cred * | cred | |
| unsigned long | flags |
| 6543 | ksec = 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). |
| 6547 | tsec = selinux_cred(cred) |
| 6548 | If keycreate SID Then SID of key = keycreate SID |
| 6550 | Else SID of key = current SID |
| 6553 | security data for this key = ksec |
| 6554 | 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 |