函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smk_access_entry - look up matching access rule*@subject_label: a pointer to the subject's Smack label*@object_label: a pointer to the object's Smack label*@rule_list: the list of rules to search* This function looks up the subject/object pair in the

函数原型:int smk_access_entry(char *subject_label, char *object_label, struct list_head *rule_list)

返回类型:int

参数:

类型参数名称
char *subject_label
char *object_label
struct list_head *rule_list
84  may等于负ENOENT
88  如果smk_known恒等于object_labelsmk_known恒等于subject_label
90  may等于smk_access
91  退出
98  如果may按位与MAY_WRITE的值恒等于MAY_WRITEmay或等于Locks should be writes, but ...
100  返回:may
调用者
名称描述
smack_mmap_filesmack_mmap_file :* Check permissions for a mmap operation. The @file may be NULL, e.g.* if mapping anonymous memory.*@file contains the file structure for file to map (may be NULL).*@reqprot contains the protection requested by the application.
smack_dentry_create_files_as
smk_accesssmk_access - determine if a subject has a specific access to an object*@subject: a pointer to the subject's Smack label entry*@object: a pointer to the object's Smack label entry*@request: the access requested, in "MAY" format*@a : a pointer to the audit
smk_tskaccsmk_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