函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_transaction_write

函数原型:static ssize_t selinux_transaction_write(struct file *file, const char __user *buf, size_t size, loff_t *pos)

返回类型:ssize_t

参数:

类型参数名称
struct file *file
const char __user *buf
size_tsize
loff_t *pos
776  ino等于Stat data, not accessed from path walking
780  如果ino大于等于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(write_op)或非write_op[ino]则返回:负EINVAL
783  data等于simple_transaction_get(file, buf, size)
784  如果是错误则返回:错误
787  rv等于write_op[ino](file, data, size)
788  如果rv大于0则
789  simple_transaction_set(file, rv)
790  rv等于size
792  返回:rv