函数逻辑报告 |
Source Code:security\apparmor\mount.c |
Create Date:2022-07-27 21:47:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Returns 0 on success else element that match failed in, this is the* index into the mnt_info_table above
函数原型:static int do_match_mnt(struct aa_dfa *dfa, unsigned int start, const char *mntpnt, const char *devname, const char *type, unsigned long flags, void *data, bool binary, struct aa_perms *perms)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct aa_dfa * | dfa | |
unsigned int | start | |
const char * | mntpnt | |
const char * | devname | |
const char * | type | |
unsigned long | flags | |
void * | data | |
bool | binary | |
struct aa_perms * | perms |
251 | 如果非state则返回:1 |
257 | 如果非state则返回:2 |
263 | 如果非state则返回:3 |
266 | state等于match_mnt_flags - Do an ordered match on mount flags*@dfa: dfa to match against*@state: state to start in*@flags: mount flags to match against* Mount flags are encoded as an ordered match |
267 | 如果非state则返回:4 |
269 | perms等于mpute_mnt_perms - compute mount permission associated with @state*@dfa: dfa to match against (NOT NULL)*@state: state match finished in* Returns: mount permissions |
270 | 如果allow按位与AA_MAY_MOUNT则返回:0 |
274 | 如果data且非binary且allow按位与AA_MNT_CONT_MATCH则 |
276 | 如果非state则返回:4 |
280 | 如果非state则返回:5 |
282 | perms等于mpute_mnt_perms - compute mount permission associated with @state*@dfa: dfa to match against (NOT NULL)*@state: state match finished in* Returns: mount permissions |
283 | 如果allow按位与AA_MAY_MOUNT则返回:0 |
288 | 返回:4 |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |