函数逻辑报告 |
Source Code:fs\posix_acl.c |
Create Date:2022-07-29 11:04:56 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Return 0 if current is granted want access to the inode* by the acl. Returns -E... otherwise.
函数原型:int posix_acl_permission(struct inode *inode, const struct posix_acl *acl, int want)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| 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 |
| 359 | 如果uid_eq(i_uid, current_fsuid())则转到:check_perm |
| 361 | 退出 |
| 363 | 如果uid_eq(e_uid, current_fsuid())则转到:mask |
| 365 | 退出 |
| 366 | 当:e_tag恒等于ACL_GROUP_OBJ |
| 372 | 退出 |
| 379 | 退出 |
| 381 | 退出 |
| 385 | 否则转到:check_perm |
| 387 | 默认 |
| 388 | 返回:负EIO |
| 391 | 返回:负EIO |
| 393 | mask : |
| 402 | check_perm : |
| 405 | 返回:负EACCES |
| 名称 | 描述 |
|---|---|
| check_acl |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |