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_data - queries a policy and writes its data to buf*@buf: the resulting data is stored here (NOT NULL)*@buf_len: size of buf*@query: query string used to retrieve data*@query_len: size of query including second NUL byte
Proto:static ssize_t query_data(char *buf, size_t buf_len, char *query, size_t query_len)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
char * | buf | |
size_t | buf_len | |
char * | query | |
size_t | query_len |
714 | label = aa_label_parse(curr, query, 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) |
730 | blocks = 0 |
732 | If Not data Then Continue |
738 | If data Then |
739 | If out + size of outle32 + size of data in bytes > buf + buf_len Then |
741 | aa_put_label(label) |
742 | Return -EINVAL |
748 | out += size of data in bytes |
749 | blocks++ |
752 | aa_put_label(label) |
754 | outle32 = __cpu_to_le32(out - buf - size of bytes ) |
756 | outle32 = __cpu_to_le32(blocks) |
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 |