函数逻辑报告 |
Source Code:security\apparmor\domain.c |
Create Date:2022-07-27 21:30:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:aa_xattrs_match - check whether a file matches the xattrs defined in profile*@bprm: binprm struct for the process to validate*@profile: profile to match against (NOT NULL)*@state: state to start match in* Returns: number of extended attributes that
函数原型:static int aa_xattrs_match(const struct linux_binprm *bprm, struct aa_profile *profile, unsigned int state)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct linux_binprm * | bprm | |
struct aa_profile * | profile | |
unsigned int | state |
315 | char * value = NULL |
316 | value_size等于0, ret等于xattr_count |
318 | 如果非bprm或非xattr_count则返回:0 |
320 | might_sleep() |
327 | 以i小于xattr_count循环 |
328 | size等于vfs_getxattr_alloc(d, xattrs[i], & value, value_size, GFP_KERNEL) |
330 | 如果size大于等于0则 |
344 | 如果size小于0则 |
359 | out : |
360 | 释放内存 |
361 | 返回:ret |
名称 | 描述 |
---|---|
find_attach | d_attach - do attachment search for unconfined processes*@bprm - binprm structure of transitioning task*@ns: the current namespace (NOT NULL)*@head - profile list to walk (NOT NULL)*@name - to match against (NOT NULL)*@info - info message if there was an |
profile_transition |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |