函数逻辑报告 |
Source Code:security\apparmor\mount.c |
Create Date:2022-07-27 21:47:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:audit_mount - handle the auditing of mount operations*@profile: the profile being enforced (NOT NULL)*@op: operation being mediated (NOT NULL)*@name: name of object being mediated (MAYBE NULL)*@src_name: src_name of object being mediated
函数原型:static int audit_mount(struct aa_profile *profile, const char *op, const char *name, const char *src_name, const char *type, const char *trans, unsigned long flags, const void *data, unsigned int request, struct aa_perms *perms, const char *info, int error)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct aa_profile * | profile | |
const char * | op | |
const char * | name | |
const char * | src_name | |
const char * | type | |
const char * | trans | |
unsigned long | flags | |
const void * | data | |
unsigned int | request | |
struct aa_perms * | perms | |
const char * | info | |
int | error |
139 | 如果此条件成立可能性大(为编译器优化)(!error)则 |
142 | 如果此条件成立可能性小(为编译器优化)(AUDIT_MODE(profile) == AUDIT_ALL)则mask等于0xffff |
148 | 如果此条件成立可能性大(为编译器优化)(!request)则返回:0 |
151 | 否则 |
173 | 如果data且 set only when allow is set 按位与AA_AUDIT_DATA则data等于data |
名称 | 描述 |
---|---|
match_mnt_path_str | match_mnt_path_str - handle path matching for mount*@profile: the confining profile*@mntpath: for the mntpnt (NOT NULL)*@buffer: buffer to be used to lookup mntpath*@devnme: string for the devname/src_name (MAY BE NULL OR ERRPTR)*@type: string for the dev |
profile_umount | |
build_pivotroot | helper fn for transition on pivotroot* Returns: label for transition or ERR_PTR. Does not return NULL |
aa_pivotroot |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |