Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\selinuxfs.c Create Date:2022-07-28 19:04:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sel_write_checkreqprot

Proto:static ssize_t sel_write_checkreqprot(struct file *file, const char __user *buf, size_t count, loff_t *ppos)

Type:ssize_t

Parameter:

TypeParameterName
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  If length Then Return length
650  If count >= PAGE_SIZE Then Return -ENOMEM
654  If ppos != 0 Then Return -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  If IS_ERR(page) Then Return PTR_ERR(page)
661  length = -EINVAL
662  If sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments != 1 Then Go to out
665  checkreqprot = If new_value Then 1 Else 0
666  length = count
667  out :
668  kfree(page)
669  Return length