Function report |
Source Code:kernel\audit.c |
Create Date:2022-07-28 11:23:52 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:audit_set_loginuid_perm
Proto:static int audit_set_loginuid_perm(kuid_t loginuid)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| kuid_t | loginuid |
| 2187 | If Not audit_loginuid_set(current process) Then Return 0 |
| 2190 | If is_audit_feature_set(AUDIT_FEATURE_LOGINUID_IMMUTABLE) Then Return -EPERM |
| 2193 | If Not Check operation authority Then Return -EPERM |
| 2196 | If is_audit_feature_set(AUDIT_FEATURE_ONLY_UNSET_LOGINUID) && uid_valid(loginuid) Then Return -EPERM |
| 2199 | Return 0 |
| Name | Describe |
|---|---|
| audit_set_loginuid | audit_set_loginuid - set current task's loginuid*@loginuid: loginuid value* Returns 0.* Called (set) from fs/proc/base.c::proc_loginuid_write(). |
| 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 |