Function report |
Source Code:security\smack\smackfs.c |
Create Date:2022-07-28 19:26:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:smk_fill_rule - Fill Smack rule from strings*@subject: subject label string*@object: object label string*@access1: access string*@access2: string with permissions to be removed*@rule: Smack rule*@import: if non-zero, import labels*@len: label length limit
Proto:static int smk_fill_rule(const char *subject, const char *object, const char *access1, const char *access2, struct smack_parsed_rule *rule, int import, int len)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | subject | |
const char * | object | |
const char * | access1 | |
const char * | access2 | |
struct smack_parsed_rule * | rule | |
int | import | |
int | len |
322 | If import Then |
323 | smk_subject = smk_import_entry - import a label, return the list entry*@string: a text string that might be a Smack label*@len: the maximum size, or zero if it is NULL terminated |
324 | If IS_ERR(smk_subject) Then Return PTR_ERR(smk_subject) |
327 | smk_object = smk_import_entry - import a label, return the list entry*@string: a text string that might be a Smack label*@len: the maximum size, or zero if it is NULL terminated |
328 | If IS_ERR(smk_object) Then Return PTR_ERR(smk_object) |
330 | Else |
338 | smk_subject = skp |
347 | smk_object = skp |
353 | Else smk_access2 = ~smk_access1 |
356 | Return 0 |
Name | Describe |
---|---|
smk_parse_rule | smk_parse_rule - parse Smack rule from load string*@data: string to be parsed whose size is SMK_LOADLEN*@rule: Smack rule*@import: if non-zero, import labels* Returns 0 on success, -1 on errors. |
smk_parse_long_rule | smk_parse_long_rule - parse Smack rule from rule string*@data: string to be parsed, null terminated*@rule: Will be filled with Smack parsed rule*@import: if non-zero, import labels*@tokens: numer of substrings expected in data |
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 |