Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\mount.c Create Date:2022-07-28 19:54:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:profile_umount

Proto:static int profile_umount(struct aa_profile *profile, struct path *path, char *buffer)

Type:int

Parameter:

TypeParameterName
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  If Not PROFILE_MEDIATES(profile, AA_CLASS_MOUNT) Then Return 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  If error Then Go to 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  If AA_MAY_UMOUNT & ~allow Then error = -EACCES
608  audit :
609  Return 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
Caller
NameDescribe
aa_umount