Function report |
Source Code:security\apparmor\label.c |
Create Date:2022-07-28 19:54:27 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:aa_label_strn_parse - parse, validate and convert a text string to a label*@base: base label to use for lookups (NOT NULL)*@str: null terminated text string (NOT NULL)*@n: length of str to parse, will stop at \0 if encountered before n*@gfp: allocation
Proto:struct aa_label *aa_label_strn_parse(struct aa_label *base, const char *str, size_t n, gfp_t gfp, bool create, bool force_stack)
Type:struct aa_label
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct aa_label * | base | |
| const char * | str | |
| size_t | n | |
| gfp_t | gfp | |
| bool | create | |
| bool | force_stack |
| 1861 | DEFINE_VEC(profile, vec) |
| 1863 | stack = 0 |
| 1870 | str = skipn_spaces - Removes leading whitespace from @str.*@str: The string to be stripped.* Returns a pointer to the first non-whitespace character in @str.* if all whitespace will return NULL |
| 1874 | len = label_count_strn_entries(str, end - str) |
| 1875 | If str == '&' || force_stack Then |
| 1902 | split = aa_label_strn_split(str, end - str) |
| 1916 | If len == 1 Then |
| 1917 | label = aa_get_label( & label) |
| 1918 | Go to out |
| 1928 | out : |
| 1930 | vec_cleanup(profile, vec, len) |
| 1931 | Return label |
| 1933 | fail : |
| 1935 | Go to out |
| Name | Describe |
|---|---|
| aa_label_parse | |
| apparmor_secctx_to_secid |
| 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 |