Function report |
Source Code:kernel\cgroup\cgroup.c |
Create Date:2022-07-28 11:09:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:set uid and gid of cgroup dirs and files to that of the creator
Proto:static int cgroup_kn_set_ugid(struct kernfs_node *kn)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct kernfs_node * | kn |
3796 | struct iattr iattr = {ia_valid = ATTR_UID | ATTR_GID, ia_uid = current_fsuid(), ia_gid = current_fsgid(), } |
3800 | If uid_eq(ia_uid, GLOBAL_ROOT_UID) && gid_eq(ia_gid, GLOBAL_ROOT_GID) Then Return 0 |
3804 | Return kernfs_setattr(kn, & iattr) |
Name | Describe |
---|---|
cgroup_add_file | |
cgroup_mkdir |
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 |