Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-28 20:07:59
Last Modify:2020-03-18 19:19:59 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:bool inode_owner_or_capable(const struct inode *inode)

Type:bool

Parameter:

TypeParameterName
const struct inode *inode
2082  If uid_eq(current_fsuid(), i_uid) Then Return true
2085  ns = current_user_ns()
2086  If 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. ) Then Return true
2088  Return false
Caller
NameDescribe
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