函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\lsm.c Create Date:2022-07-27 21:37:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:apparmor_file_open

函数原型:static int apparmor_file_open(struct file *file)

返回类型:int

参数:

类型参数名称
struct file *file
404  fctx等于file_ctx(file)
406  error等于0
408  如果非path_mediated_fs(dentry)则返回:0
416  如果in_execve
417  allow等于MAY_EXEC按位或MAY_READ按位或AA_EXEC_MMAP
418  返回:0
421  label等于aa_get_newest_cred_label - obtain the newest label on a cred*@cred: cred to obtain label from (NOT NULL)* Returns: newest version of confining label
422  如果非unconfined(label)则
423  inode等于file_inode(file)
424  struct path_cond cond = {i_uid, i_mode}
426  error等于aa_path_perm(OP_OPEN, label, & f_path, 0, aa_map_file_perms - map file flags to AppArmor permissions*@file: open file to map flags to AppArmor permissions* Returns: apparmor permission set for the file, & cond)
429  allow等于aa_map_file_perms - map file flags to AppArmor permissions*@file: open file to map flags to AppArmor permissions* Returns: apparmor permission set for the file
431  aa_put_label(label)
433  返回:error