Function report |
Source Code:security\smack\smack_access.c |
Create Date:2022-07-28 19:25:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:int smk_access_entry(char *subject_label, char *object_label, struct list_head *rule_list)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
char * | subject_label | |
char * | object_label | |
struct list_head * | rule_list |
88 | If smk_known == object_label && smk_known == subject_label Then |
90 | may = smk_access |
91 | Break |
98 | If (may & MAY_WRITE) == MAY_WRITE Then may |= Locks should be writes, but ... |
100 | Return may |
Name | Describe |
---|---|
smack_mmap_file | smack_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_access | smk_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_tskacc | 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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |