Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:sel_write_avc_cache_threshold

Proto:static ssize_t sel_write_avc_cache_threshold(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
1429  fsi = s_fs_info
1430  state = state
1435  ret = avc_has_perm - Check permissions and perform any appropriate auditing
1439  If ret Then Return ret
1442  If count >= PAGE_SIZE Then Return -ENOMEM
1446  If ppos != 0 Then Return -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  If IS_ERR(page) Then Return PTR_ERR(page)
1453  ret = -EINVAL
1454  If sscanf - Unformat a buffer into a list of arguments*@buf: input buffer*@fmt: formatting of buffer*@...: resulting arguments != 1 Then Go to out
1457  avc_set_cache_threshold(avc, new_value)
1459  ret = count
1460  out :
1461  kfree(page)
1462  Return ret