Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aa_bind_mount

Proto:int aa_bind_mount(struct aa_label *label, const struct path *path, const char *dev_name, unsigned long flags)

Type:int

Parameter:

TypeParameterName
struct aa_label *label
const struct path *path
const char *dev_name
unsigned longflags
426  char * buffer = NULL, * old_buffer = NULL
430  AA_BUG(!label)
431  AA_BUG(!path)
433  If Not dev_name || Not dev_name Then Return -EINVAL
436  flags &= MS_REC | MS_BIND
438  error = kern_path(dev_name, llow links at the end | rce terminal automount , & old_path)
439  If error Then Return error
442  buffer = aa_get_buffer(false)
443  old_buffer = aa_get_buffer(false)
444  error = -ENOMEM
445  If Not buffer || Not old_buffer Then Go to out
448  error = fn_for_each_confined(label, profile, match_mnt - handle path matching for mount*@profile: the confining profile*@mntpath: for the mntpnt (NOT NULL)*@buffer: buffer to be used to lookup mntpath*@devpath: path devname/src_name (MAYBE NULL)*@devbuffer: buffer to be used to lookup )
451  out :
452  aa_put_buffer(buffer)
453  aa_put_buffer(old_buffer)
454  path_put( & old_path)
456  Return error