Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static int smack_file_open(struct file *file)

Type:int

Parameter:

TypeParameterName
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  Return rc