Function report |
Source Code:security\commoncap.c |
Create Date:2022-07-28 18:36:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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().
Proto:static int get_file_caps(struct linux_binprm *bprm, bool *effective, bool *has_fcap)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct linux_binprm * | bprm | |
bool * | effective | |
bool * | has_fcap |
652 | rc = 0 |
655 | cap_clear( caps we're permitted ) |
657 | If Not file_caps_enabled Then Return 0 |
660 | If Not mnt_may_suid(mnt) Then Return 0 |
668 | If Not current_in_userns(s_user_ns) Then Return 0 |
672 | If rc < 0 Then |
678 | Go to out |
683 | out : |
684 | If rc Then cap_clear( caps we're permitted ) |
687 | Return rc |
Name | Describe |
---|---|
cap_bprm_set_creds | ap_bprm_set_creds - Set up the proposed credentials for execve().*@bprm: The execution parameters, including the proposed creds* Set up the proposed credentials for a new execution context 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 |