Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mmap_prot

Proto:static inline unsigned long mmap_prot(struct file *file, unsigned long prot)

Type:unsigned long

Parameter:

TypeParameterName
struct file *file
unsigned longprot
1418  If (prot & (page can be read | page can be executed )) != page can be read Then Return prot
1420  If Not (personality & READ_IMPLIES_EXEC) Then Return prot
1425  If Not file Then Return prot | page can be executed
1431  If Not path_noexec( & f_path) Then
1439  Return prot | page can be executed
1442  Return prot
Caller
NameDescribe
security_mmap_file