| Function report | 
| Source Code: security\selinux\hooks.c | Create Date:2022-07-28 18:53:04 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:superblock_alloc_security
Proto:static int superblock_alloc_security(struct super_block *sb)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct super_block * | sb | 
| 372 | sbsec = 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). | 
| 376 | mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & lock) | 
| 379 | back pointer to sb object = sb | 
| 383 | s_security = sbsec | 
| 385 | Return 0 | 
| Name | Describe | 
|---|---|
| selinux_sb_alloc_security | superblock security operations | 
| 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 |