函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-27 20:30:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:selinux_mmap_file

函数原型:static int selinux_mmap_file(struct file *file, unsigned long reqprot, unsigned long prot, unsigned long flags)

返回类型:int

参数:

类型参数名称
struct file *file
unsigned longreqprot
unsigned longprot
unsigned longflags
3719  如果file
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  如果rc则返回:rc
3728  如果checkreqprotprot等于reqprot
3731  返回:file_map_prot_check(file, prot, (flags & Mask for type of mapping ) == Share changes )