函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:profile_umount

函数原型:static int profile_umount(struct aa_profile *profile, struct path *path, char *buffer)

返回类型:int

参数:

类型参数名称
struct aa_profile *profile
struct path *path
char *buffer
585  struct aa_perms perms = {}
586  const char * name = NULL, * info = NULL
590  AA_BUG(!profile)
591  AA_BUG(!path)
593  如果非PROFILE_MEDIATES(profile, AA_CLASS_MOUNT)则返回:0
596  error等于aa_path_name - get the pathname to a buffer ensure dir / is appended*@path: path the file (NOT NULL)*@flags: flags controlling path name generation*@buffer: buffer to put name in (NOT NULL)*@name: Returns - the generated path name if !error (NOT
598  如果error则转到:audit
601  state等于aa_dfa_match - traverse @dfa to find state @str stops at*@dfa: the dfa to match @str against (NOT NULL)*@start: the state of the dfa to start matching in*@str: the null terminated string of bytes to match against the dfa (NOT NULL)* aa_dfa_match will
604  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
605  如果AA_MAY_UMOUNT按位与allow的反则error等于负EACCES
608  audit :
609  返回: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
调用者
名称描述
aa_umount