Function report |
Source Code:security\smack\smackfs.c |
Create Date:2022-07-28 19:26:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smk_set_access - add a rule to the rule list or replace an old rule*@srp: the rule to add or replace*@rule_list: the list of rules*@rule_lock: the rule list lock* Looks through the current subject/object/access list for* the subject/object pair and
Proto:static int smk_set_access(struct smack_parsed_rule *srp, struct list_head *rule_list, struct mutex *rule_lock)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct smack_parsed_rule * | srp | |
struct list_head * | rule_list | |
struct mutex * | rule_lock |
216 | found = 0 |
217 | rc = 0 |
219 | mutex_lock(rule_lock) |
226 | If smk_object == smk_object && smk_subject == smk_subject Then |
235 | If found == 0 Then |
237 | If (sp == NULL) Then |
242 | smk_subject = smk_subject |
243 | smk_object = smk_object |
244 | smk_access = smk_access1 & ~smk_access2 |
249 | out : |
251 | Return rc |
Name | Describe |
---|---|
smk_write_rules_list | smk_write_rules_list - write() for any /smack rule file*@file: file pointer, not actually used*@buf: where to get the data from*@count: bytes sent*@ppos: where to start - must be 0*@rule_list: the list of rules to write to*@rule_lock: lock for the rule |
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 |