Function report | 
Source Code:fs\posix_acl.c | 
Create Date:2022-07-28 20:29:48 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Check if an acl is valid. Returns 0 if it is, or -E... otherwise.
Proto:int posix_acl_valid(struct user_namespace *user_ns, const struct posix_acl *acl)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct user_namespace * | user_ns | |
| const struct posix_acl * | acl | 
| 214 | needs_mask = 0 | 
| 217 | If e_perm & ~( permissions in the e_perm field | ACL_WRITE | ACL_EXECUTE) Then Return -EINVAL | 
| 220 | Case e_tag == _tag entry in struct posix_acl_entry | 
| 221 | If state == _tag entry in struct posix_acl_entry Then | 
| 225 | Return -EINVAL | 
| 235 | Case e_tag == ACL_GROUP_OBJ | 
| 257 | If state == ACL_OTHER || state == ACL_GROUP && Not needs_mask Then | 
| 259 | state = 0 | 
| 260 | Break | 
| 262 | Return -EINVAL | 
| 264 | Default | 
| 265 | Return -EINVAL | 
| 268 | If state == 0 Then Return 0 | 
| 270 | Return -EINVAL | 
| Name | Describe | 
|---|---|
| set_posix_acl | 
| 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  |