Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 18:58:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:selinux_mmap_file

Proto:static int selinux_mmap_file(struct file *file, unsigned long reqprot, unsigned long prot, unsigned long flags)

Type:int

Parameter:

TypeParameterName
struct file *file
unsigned longreqprot
unsigned longprot
unsigned longflags
3719  If file Then
3720  type = LSM_AUDIT_DATA_FILE
3721  file = file
3722  rc = Check whether a task has a particular permission to an inode.The 'adp' parameter is optional and allows other auditdata to be passed (e.g. the dentry).
3724  If rc Then Return rc
3728  If checkreqprot Then prot = reqprot
3731  Return file_map_prot_check(file, prot, (flags & Mask for type of mapping ) == Share changes )