Function report |
Source Code:security\apparmor\label.c |
Create Date:2022-07-28 19:54:25 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:label_components_match - find perms for all subcomponents of a label*@profile: profile to find perms for*@label: label to check access permissions for*@start: state to start match in*@subns: whether to do permission checks on components in a
Proto:static int label_components_match(struct aa_profile *profile, struct aa_label *label, unsigned int start, bool subns, unsigned int request, struct aa_perms *perms)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct aa_profile * | profile | |
| struct aa_label * | label | |
| unsigned int | start | |
| bool | subns | |
| unsigned int | request | |
| struct aa_perms * | perms |
| 1339 | state = 0 |
| 1348 | Go to next |
| 1352 | Return 0 |
| 1354 | next : |
| 1355 | aa_compute_perms(Generic policy DFA specific rule types will be subsections of it , state, & tmp) |
| 1364 | aa_compute_perms(Generic policy DFA specific rule types will be subsections of it , state, & tmp) |
| 1372 | Return 0 |
| 1374 | fail : |
| 1376 | Return -EACCES |
| Name | Describe |
|---|---|
| aa_label_match | aa_label_match - do a multi-component label match*@profile: profile to match against (NOT NULL)*@label: label to match (NOT NULL)*@state: state to start in*@subns: whether to match subns components*@request: permission request*@perms: Returns computed |
| label_match | label_match - do a multi-component label match*@profile: profile to match against (NOT NULL)*@label: label to match (NOT NULL)*@stack: whether this is a stacking request*@state: state to start in*@subns: whether to match subns components*@request: |
| 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 |