Function report |
Source Code:security\safesetid\lsm.c |
Create Date:2022-07-28 19:55:29 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:safesetid_security_capable
Proto:static int safesetid_security_capable(const struct cred *cred, struct user_namespace *ns, int cap, unsigned int opts)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct cred * | cred | |
| struct user_namespace * | ns | |
| int | cap | |
| unsigned int | opts |
| 69 | If cap != Allows forged pids on socket credentials passing. Then Return 0 |
| 77 | If (opts & If capable is being called by a setid function ) != 0 Then Return 0 |
| 84 | If Compute a decision for a transition from @src to @dst under the active* policy. == source ID is unaffected by policy Then Return 0 |
| 91 | pr_warn("Operation requires CAP_SETUID, which is not available to UID %u for operations besides approved set*uid transitions\n", __kuid_val( real UID of the task )) |
| 93 | Return -EPERM |
| 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 |