函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-29 10:38:09
Last Modify:2020-03-18 19:19:59 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:de_owner_or_capable - check current task permissions to inode*@inode: inode being checked* Return true if current either has CAP_FOWNER in a namespace with the* inode owner uid mapped, or owns the file.

函数原型:bool inode_owner_or_capable(const struct inode *inode)

返回类型:bool

参数:

类型参数名称
const struct inode *inode
2082  如果uid_eq(current_fsuid(), i_uid)则返回:true
2085  ns等于current_user_ns()
2086  如果kuid_has_mapping(ns, i_uid)且ns_capable(ns, Overrides all restrictions about allowed operations on files, wherefile owner ID must be equal to the user ID, except where CAP_FSETIDis applicable. It doesn't override MAC and DAC restrictions. )则返回:true
2088  返回:false
调用者
名称描述
can_do_pageout
selinux_inode_setxattr
may_open
setfl
setattr_preparesetattr_prepare - check if attribute changes to a dentry are allowed*@dentry: dentry to check*@attr: attributes to change* Check if we are allowed to change the attributes contained in @attr* in the given dentry
notify_changey_change - modify attributes of a filesytem object*@dentry: object affected*@attr: new attributes*@delegated_inode: returns inode, if the inode is delegated* The caller must hold the i_mutex on the affected object
xattr_permissionCheck permissions for extended attribute access. This is a bit complicated* because different namespaces have very different rules.
fscrypt_ioctl_set_policy
set_posix_acl
can_do_mincore