Function report |
Source Code:security\commoncap.c |
Create Date:2022-07-28 18:36: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_capset - Validate and apply proposed changes to current's capabilities*@new: The proposed new credentials; alterations should be made here*@old: The current task's current credentials*@effective: A pointer to the proposed new effective capabilities
Proto:int cap_capset(struct cred *new, const struct cred *old, const kernel_cap_t *effective, const kernel_cap_t *inheritable, const kernel_cap_t *permitted)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cred * | new | |
| const struct cred * | old | |
| const kernel_cap_t * | effective | |
| const kernel_cap_t * | inheritable | |
| const kernel_cap_t * | permitted |
| 276 | Ambient capability set = cap_intersect( Ambient capability set , cap_intersect( * permitted, * inheritable)) |
| 279 | If WARN_ON(!cap_ambient_invariant_ok(new)) Then Return -EINVAL |
| 281 | 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 |