Function report |
Source Code:security\apparmor\apparmorfs.c |
Create Date:2022-07-28 19:49:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:query_label - queries a label and writes permissions to buf*@buf: the resulting permissions string is stored here (NOT NULL)*@buf_len: size of buf*@query: binary query string to match against the dfa*@query_len: size of query*@view_only: only compute for
Proto:static ssize_t query_label(char *buf, size_t buf_len, char *query, size_t query_len, bool view_only)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
char * | buf | |
size_t | buf_len | |
char * | query | |
size_t | query_len | |
bool | view_only |
795 | label_name = query |
796 | label_name_len = strnlen(query, query_len) |
797 | If Not label_name_len || label_name_len == query_len Then Return -EINVAL |
806 | match_str = label_name + label_name_len + 1 |
807 | match_len = query_len - label_name_len - 1 |
810 | label = aa_label_parse(curr, label_name, GFP_KERNEL, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., false) |
816 | If view_only Then |
818 | profile_query_cb(profile, & perms, match_str, match_len) |
820 | Else |
822 | profile_query_cb(profile, & perms, match_str, match_len) |
825 | aa_put_label(label) |
Name | Describe |
---|---|
aa_write_access | aa_write_access - generic permissions and data query*@file: pointer to open apparmorfs/access file*@ubuf: user buffer containing the complete query string (NOT NULL)*@count: size of ubuf*@ppos: position in the file (MUST BE ZERO)* Allows for one |
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 |