| Function report | 
| Source Code: security\smack\smack_lsm.c | Create Date:2022-07-28 19:19:59 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:smack_fs_context_dup - Duplicate the security data on fs_context duplication*@fc: The new filesystem context.*@src_fc: The source filesystem context being duplicated.* Returns 0 on success or -ENOMEM on error.
Proto:static int smack_fs_context_dup(struct fs_context *fc, struct fs_context *src_fc)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct fs_context * | fc | |
| struct fs_context * | src_fc | 
| 643 | src = Linux S&M options | 
| 645 | If Not src Then Return 0 | 
| 648 | Linux S&M options = 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). | 
| 649 | If Not Linux S&M options Then Return -ENOMEM | 
| 651 | dst = Linux S&M options | 
| 653 | If fsdefault Then | 
| 658 | If fsfloor Then | 
| 663 | If fshat Then | 
| 668 | If fsroot Then | 
| 673 | If fstransmute Then | 
| 675 | If Not fstransmute Then Return -ENOMEM | 
| 678 | 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 |