函数逻辑报告 |
Source Code:kernel\capability.c |
Create Date:2022-07-27 10:12:25 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:apable_wrt_inode_uidgid - Check nsown_capable and uid and gid mapped*@inode: The inode in question*@cap: The capability in question* Return true if the current task has the given capability targeted at* its own user namespace and that the given inode's
函数原型:bool capable_wrt_inode_uidgid(const struct inode *inode, int cap)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const struct inode * | inode | |
| int | cap |
| 504 | ns等于current_user_ns() |
| 名称 | 描述 |
|---|---|
| cap_inode_removexattr | ap_inode_removexattr - Determine whether an xattr may be removed*@dentry: The inode/dentry being altered*@name: The name of the xattr to be changed* Determine whether an xattr may be removed from an inode, returning 0 if |
| generic_permission | generic_permission - check for access rights on a Posix-like filesystem*@inode: inode to check access rights for*@mask: right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC, |
| __check_sticky | |
| inode_init_owner | de_init_owner - Init uid,gid,mode for new inode according to posix standards*@inode: New inode*@dir: Directory inode*@mode: mode of the new inode |
| chown_ok | |
| chgrp_ok | |
| setattr_prepare | setattr_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 |
| setattr_copy | setattr_copy - copy simple metadata updates into the generic inode*@inode: the inode to be updated*@attr: the new attributes* setattr_copy must be called with i_mutex held.* setattr_copy updates the inode's metadata with that specified* in attr |
| posix_acl_update_mode | posix_acl_update_mode - update mode in set_acl*@inode: target inode*@mode_p: mode (pointer) for update*@acl: acl pointer* Update the file mode when setting an ACL: compute the new file permission* bits based on the ACL |
| cap_convert_nscap | User requested a write of security.capability. If needed, update the* xattr to change from v2 to v3, or to fixup the v3 rootid.* If all is ok, we return the new size, on error return < 0. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |