Function report |
Source Code:security\commoncap.c |
Create Date:2022-07-28 18:37:00 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ap_task_fix_setuid - Fix up the results of setuid() call*@new: The proposed credentials*@old: The current task's current credentials*@flags: Indications of what has changed* Fix up the results of setuid() call before the credential changes are
Proto:int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cred * | new | |
| const struct cred * | old | |
| int | flags |
| 1037 | Case flags == setreuid or setregid, id0 == real, id1 == eff |
| 1038 | Case flags == setuid or setgid, id0 == uid or gid |
| 1044 | Break |
| 1046 | Case flags == setfsuid or setfsgid, id0 == fsuid or fsgid |
| 1055 | If uid_eq( UID for VFS ops , root_uid) && Not uid_eq( UID for VFS ops , root_uid) Then caps we can actually use = Used to decide between falling back on the old suser() or fsuser(). |
| 1059 | If Not uid_eq( UID for VFS ops , root_uid) && uid_eq( UID for VFS ops , root_uid) Then caps we can actually use = cap_raise_fs_set( caps we can actually use , caps we're permitted ) |
| 1064 | Break |
| 1066 | Default |
| 1067 | Return -EINVAL |
| 1070 | Return 0 |
| 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 |