Function report |
Source Code:security\apparmor\apparmorfs.c |
Create Date:2022-07-28 19:49:58 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static ssize_t aa_write_access(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | file | |
const char __user * | ubuf | |
size_t | count | |
loff_t * | ppos |
971 | t = multi_transaction_new(file, ubuf, count) |
975 | If count > QUERY_CMD_PROFILE_LEN && Not memcmp(data, QUERY_CMD_PROFILE, QUERY_CMD_PROFILE_LEN) Then |
980 | Else if count > QUERY_CMD_LABEL_LEN && Not memcmp(data, QUERY_CMD_LABEL, QUERY_CMD_LABEL_LEN) Then |
985 | Else if count > QUERY_CMD_LABELALL_LEN && Not memcmp(data, QUERY_CMD_LABELALL, QUERY_CMD_LABELALL_LEN) Then |
991 | Else if count > QUERY_CMD_DATA_LEN && Not memcmp(data, QUERY_CMD_DATA, QUERY_CMD_DATA_LEN) Then |
999 | If len < 0 Then |
1000 | put_multi_transaction(t) |
1001 | Return len |
1006 | Return count |
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 |