函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_file_open - Smack dentry open processing*@file: the object* Set the security blob in the file structure.* Allow the open only if the task has read access. There are* many read operations (e.g. fstat) that you can do with an

函数原型:static int smack_file_open(struct file *file)

返回类型:int

参数:

类型参数名称
struct file *file
1882  tsp等于smack_cred(f_cred)
1883  inode等于file_inode(file)
1887  some inline functions to set up audit data* they do nothing if CONFIG_AUDIT is not set
1888  smk_ad_setfield_u_fs_path( & ad, f_path)
1889  rc等于smk_tskacc - determine if a task has a specific access to an object*@tsp: a pointer to the subject's task*@obj_known: a pointer to the object's label entry*@mode: the access requested, in "MAY" format*@a : common audit data* This function checks the
1890  rc等于smk_bu_credfile(f_cred, file, MAY_READ, rc)
1892  返回:rc