函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:sel_write_checkreqprot

函数原型:static ssize_t sel_write_checkreqprot(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
638  fsi等于s_fs_info
643  length等于avc_has_perm - Check permissions and perform any appropriate auditing
647  如果length则返回:length
650  如果count大于等于PAGE_SIZE则返回:负ENOMEM
654  如果ppos不等于0则返回:负EINVAL
657  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.
658  如果是错误则返回:错误
661  length等于负EINVAL
662  如果sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments不等于1则转到:out
665  checkreqprot等于如果new_value则1否则0
666  length等于count
667  out :
668  释放内存
669  返回:length