函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sel_write_avc_cache_threshold

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

返回类型:ssize_t

参数:

类型参数名称
struct file *file
const char __user *buf
size_tcount
loff_t *ppos
1429  fsi等于s_fs_info
1430  state等于state
1435  ret等于avc_has_perm - Check permissions and perform any appropriate auditing
1439  如果ret则返回:ret
1442  如果count大于等于PAGE_SIZE则返回:负ENOMEM
1446  如果ppos不等于0则返回:负EINVAL
1449  page等于memdup_user_nul - duplicate memory region from user space and NUL-terminate*@src: source address in user space*@len: number of bytes to copy* Return: an ERR_PTR() on failure.
1450  如果是错误则返回:错误
1453  ret等于负EINVAL
1454  如果sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments不等于1则转到:out
1457  avc_set_cache_threshold(avc, new_value)
1459  ret等于count
1460  out :
1461  释放内存
1462  返回:ret