Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:apparmor_sb_mount

Proto:static int apparmor_sb_mount(const char *dev_name, const struct path *path, const char *type, unsigned long flags, void *data)

Type:int

Parameter:

TypeParameterName
const char *dev_name
const struct path *path
const char *type
unsigned longflags
void *data
533  error = 0
536  If (flags & MS_MGC_MSK) == Old magic mount flag and mask Then flags &= ~MS_MGC_MSK
539  flags &= ~AA_MS_IGNORE_MASK
541  label = __begin_current_label_crit_section - current's confining label* Returns: up to date confining label or the ns unconfined label (NOT NULL)* safe to call inside locks* The returned reference must be put with __end_current_label_crit_section()* This must NOT
542  If Not unconfined(label) Then
543  If flags & Alter flags of a mounted FS Then error = aa_remount(label, path, flags, data)
545  Else if flags & MS_BIND Then error = aa_bind_mount(label, path, dev_name, flags)
547  Else if flags & ( change to shared | change to private | change to slave | change to unbindable ) Then error = aa_mount_change_type(label, path, flags)
550  Else if flags & MS_MOVE Then error = aa_move_mount(label, path, dev_name)
552  Else error = aa_new_mount(label, dev_name, path, type, flags, data)
556  __end_current_label_crit_section(label)
558  Return error