Function report | 
Source Code:fs\posix_acl.c | 
Create Date:2022-07-28 20:29:49 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Fix up the uids and gids in posix acl extended attributes in place.
Proto:static void posix_acl_fix_xattr_userns(struct user_namespace *to, struct user_namespace *from, void *value, size_t size)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct user_namespace * | to | |
| struct user_namespace * | from | |
| void * | value | |
| size_t | size | 
| 679 | If Not value Then Return | 
| 681 | If size < sizeof(structposix_acl_xattr_header) Then Return | 
| 683 | If a_version != cpu_to_le32(Supported ACL a_version fields ) Then Return | 
| 686 | count = posix_acl_xattr_count(size) | 
| 687 | If count < 0 Then Return | 
| 689 | If count == 0 Then Return | 
| 694 | Case le16_to_cpu(e_tag) == ACL_USER | 
| 696 | e_id = cpu_to_le32(from_kuid(to, uid)) | 
| 697 | Break | 
| 698 | Case le16_to_cpu(e_tag) == ACL_GROUP | 
| 700 | e_id = cpu_to_le32(from_kgid(to, gid)) | 
| 701 | Break | 
| 702 | Default | 
| 703 | Break | 
| Name | Describe | 
|---|---|
| posix_acl_fix_xattr_from_user | |
| posix_acl_fix_xattr_to_user | 
| 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  |