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:Return 0 if current is granted want access to the inode* by the acl. Returns -E... otherwise.
Proto:int posix_acl_permission(struct inode *inode, const struct posix_acl *acl, int want)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | inode | |
const struct posix_acl * | acl | |
int | want |
351 | found = 0 |
353 | want &= MAY_READ | MAY_WRITE | MAY_EXEC | called from RCU mode, don't block |
357 | Case e_tag == _tag entry in struct posix_acl_entry |
359 | If uid_eq(i_uid, current_fsuid()) Then Go to check_perm |
361 | Break |
363 | If uid_eq(e_uid, current_fsuid()) Then Go to mask |
365 | Break |
366 | Case e_tag == ACL_GROUP_OBJ |
372 | Break |
379 | Break |
381 | Break |
385 | Else Go to check_perm |
387 | Default |
388 | Return -EIO |
391 | Return -EIO |
393 | mask : |
402 | check_perm : |
405 | Return -EACCES |
Name | Describe |
---|---|
check_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 |