函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:safesetid_file_write

函数原型:static ssize_t safesetid_file_write(struct file *file, const char __user *buf, size_t len, loff_t *ppos)

返回类型:ssize_t

参数:

类型参数名称
struct file *file
const char __user *buf
size_tlen
loff_t *ppos
200  如果非le_ns_capable - Determine if the file's opener had a capability in effect*@file: The file we want to check*@ns: The usernamespace we want the capability in*@cap: The capability to be tested for* Return true if task that opened the file had a capability in 则返回:负EPERM
203  如果ppos不等于0则返回:负EINVAL
206  返回:handle_policy_update(file, buf, len)