Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_transaction_write

Proto:static ssize_t selinux_transaction_write(struct file *file, const char __user *buf, size_t size, loff_t *pos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
const char __user *buf
size_tsize
loff_t *pos
776  ino = Stat data, not accessed from path walking
780  If ino >= ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(write_op) || Not write_op[ino] Then Return -EINVAL
783  data = simple_transaction_get(file, buf, size)
784  If IS_ERR(data) Then Return PTR_ERR(data)
787  rv = write_op[ino](file, data, size)
788  If rv > 0 Then
789  simple_transaction_set(file, rv)
790  rv = size
792  Return rv