函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:common_file_perm

函数原型:static int common_file_perm(const char *op, struct file *file, unsigned int mask, bool in_atomic)

返回类型:int

参数:

类型参数名称
const char *op
struct file *file
unsigned intmask
boolin_atomic
459  error等于0
462  如果dentry恒等于dentry则返回:负EACCES
465  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
466  error等于aa_file_perm - do permission revalidation check & audit for @file*@op: operation being checked*@label: label being enforced (NOT NULL)*@file: file to revalidate access permissions on (NOT NULL)*@request: requested permissions*@in_atomic: whether
467  __end_current_label_crit_section(label)
469  返回:error
调用者
名称描述
apparmor_file_receive
apparmor_file_permission
apparmor_file_lock
common_mmap