函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_inode_copy_up

函数原型:static int selinux_inode_copy_up(struct dentry *src, struct cred **new)

返回类型:int

参数:

类型参数名称
struct dentry *src
struct cred **new
3436  new_creds等于new
3438  如果(new_creds == NULL)则
3439  new_creds等于prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification
3440  如果非new_creds则返回:负ENOMEM
3444  tsec等于selinux_cred(new_creds)
3446  selinux_inode_getsecid(获得目录项的索引节点, & sid)
3447  fscreate SID 等于sid
3448  new等于new_creds
3449  返回:0