Function report |
Source Code:security\commoncap.c |
Create Date:2022-07-28 18:36:25 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Calculate the new process capability sets from the capability sets attached* to a file.
Proto:static inline int bprm_caps_from_vfs_caps(struct cpu_vfs_cap_data *caps, struct linux_binprm *bprm, bool *effective, bool *has_fcap)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cpu_vfs_cap_data * | caps | |
| struct linux_binprm * | bprm | |
| bool * | effective | |
| bool * | has_fcap |
| 533 | new = w credentials |
| 535 | ret = 0 |
| 537 | If magic_etc & VFS_CAP_FLAGS_EFFECTIVE Then * effective = true |
| 540 | If magic_etc & VFS_CAP_REVISION_MASK Then * has_fcap = true |
| 545 | inheritable = cap[i] |
| Name | Describe |
|---|---|
| get_file_caps | Attempt to get the on-exec apply capability sets for an executable file from* its xattrs and, if present, apply them to the proposed credentials being* constructed by execve(). |
| 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 |