Function report |
Source Code:kernel\ptrace.c |
Create Date:2022-07-28 09:13:12 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ptrace_has_cap
Proto:static bool ptrace_has_cap(const struct cred *cred, struct user_namespace *ns, unsigned int mode)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct cred * | cred | |
| struct user_namespace * | ns | |
| unsigned int | mode |
| 272 | If mode & PTRACE_MODE_NOAUDIT Then ret = security_capable(cred, ns, Allow ptrace() of any process , If capable should audit the security request ) |
| 274 | Else ret = security_capable(cred, ns, Allow ptrace() of any process , Default (no) options for the capable function ) |
| 277 | Return ret == 0 |
| Name | Describe |
|---|---|
| __ptrace_may_access | Returns 0 on success, -errno on denial. |
| 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 |