函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\apparmorfs.c Create Date:2022-07-27 21:22:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:static ssize_t aa_write_access(struct file *file, const char __user *ubuf, size_t count, loff_t *ppos)

返回类型:ssize_t

参数:

类型参数名称
struct file *file
const char __user *ubuf
size_tcount
loff_t *ppos
968  如果ppos则返回:负ESPIPE
971  t等于multi_transaction_new(file, ubuf, count)
972  如果是错误则返回:错误
975  如果count大于QUERY_CMD_PROFILE_LEN且非内存比较
977  len等于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
980  否则如果count大于QUERY_CMD_LABEL_LEN且非内存比较
982  len等于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
985  否则如果count大于QUERY_CMD_LABELALL_LEN且非内存比较
988  len等于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
991  否则如果count大于QUERY_CMD_DATA_LEN且非内存比较
993  len等于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
996  否则len等于负EINVAL
999  如果len小于0则
1000  put_multi_transaction(t)
1001  返回:len
1004  does not increment @new's count
1006  返回:count