函数逻辑报告 |
Source Code:fs\open.c |
Create Date:2022-07-29 10:30:59 |
| Last Modify:2020-03-18 10:16:03 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:chown_common
函数原型:static int chown_common(const struct path *path, uid_t user, gid_t group)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const struct path * | path | |
| uid_t | user | |
| gid_t | group |
| 623 | struct inode * delegated_inode = NULL |
| 630 | gid等于make_kgid(current_user_ns(), group) |
| 632 | retry_deleg : |
| 633 | ia_valid等于ATTR_CTIME |
| 646 | 如果非S_ISDIR(i_mode)则ia_valid或等于ATTR_KILL_SUID按位或ATTR_KILL_SGID按位或ATTR_KILL_PRIV |
| 649 | inode_lock(inode) |
| 650 | error等于security_path_chown(path, uid, gid) |
| 651 | 如果非error则error等于notify_change(dentry, & newattrs, & delegated_inode) |
| 653 | inode_unlock(inode) |
| 654 | 如果delegated_inode则 |
| 655 | error等于break_deleg_wait( & delegated_inode) |
| 656 | 如果非error则转到:retry_deleg |
| 659 | 返回:error |
| 名称 | 描述 |
|---|---|
| do_fchownat | |
| ksys_fchown |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |