Function report |
Source Code:fs\open.c |
Create Date:2022-07-28 20:00:56 |
| Last Modify:2020-03-18 10:16:03 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:chown_common
Proto:static int chown_common(const struct path *path, uid_t user, gid_t group)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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 | If Not S_ISDIR(i_mode) Then ia_valid |= ATTR_KILL_SUID | ATTR_KILL_SGID | ATTR_KILL_PRIV |
| 649 | inode_lock(inode) |
| 650 | error = security_path_chown(path, uid, gid) |
| 651 | If Not error Then error = notify_change(dentry, & newattrs, & delegated_inode) |
| 653 | inode_unlock(inode) |
| 654 | If delegated_inode Then |
| 655 | error = break_deleg_wait( & delegated_inode) |
| 656 | If Not error Then Go to retry_deleg |
| 659 | Return error |
| Name | Describe |
|---|---|
| do_fchownat | |
| ksys_fchown |
| 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 |