Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-28 20:05:00
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sb_permission - Check superblock-level permissions*@sb: Superblock of inode to check permission on*@inode: Inode to check permission on*@mask: Right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC)

Proto:static int sb_permission(struct super_block *sb, struct inode *inode, int mask)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
struct inode *inode
intmask
404  If Value for the false possibility is greater at compile time(mask & MAY_WRITE) Then
405  mode = i_mode
408  If sb_rdonly(sb) && ( S_ISREG(mode) || S_ISDIR(mode) || S_ISLNK(mode)) Then Return -EROFS
411  Return 0
Caller
NameDescribe
inode_permissionde_permission - Check for access rights to a given inode*@inode: Inode to check permission on*@mask: Right to check for (%MAY_READ, %MAY_WRITE, %MAY_EXEC)* Check for read/write/execute permissions on an inode