函数逻辑报告 |
Source Code:security\commoncap.c |
Create Date:2022-07-27 20:10:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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()
函数原型:int cap_bprm_set_creds(struct linux_binprm *bprm)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct linux_binprm * | bprm |
809 | old等于current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.() |
810 | new等于w credentials |
815 | 如果WARN_ON(!cap_ambient_invariant_ok(old))则返回:负EPERM |
818 | ret等于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(). |
827 | 如果__cap_gained(permitted, new, old)则s to clear in current->personality 或等于Security-relevant compatibility flags that must be* cleared upon setuid or setgid exec: |
835 | is_setid等于__is_setuid(new, old)或__is_setgid(new, old) |
850 | 保留uid等于 UID for VFS ops 等于有效uid |
851 | 保留gid等于 GID for VFS ops 等于有效gid |
854 | 如果has_fcap或is_setid则cap_clear( Ambient capability set ) |
872 | 如果WARN_ON(!cap_ambient_invariant_ok(new))则返回:负EPERM |
883 | 如果WARN_ON(!cap_ambient_invariant_ok(new))则返回:负EPERM |
887 | cap_elevated等于0 |
888 | 如果is_setid或非__is_real(root_uid, new)且effective或__cap_grew(permitted, ambient, new)的值则cap_elevated等于1 |
894 | 返回:0 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |