Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:check_quotactl_permission

Proto:static int check_quotactl_permission(struct super_block *sb, int type, int cmd, qid_t id)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
inttype
intcmd
qid_tid
28  Case cmd == get quota format used on given filesystem
29  Case cmd == sync disk copy of a filesystems quotas
30  Case cmd == get information about quota files
31  Case cmd == get quota subsystem status
32  Case cmd == wer version of get quota
33  Case cmd == delalloc flush, updates dquots
34  Break
36  Case cmd == get user quota structure
37  Case cmd == get disk limits and usage
38  If type == lement used for user quotas && uid_eq(current_euid(), make_kuid - Map a user-namespace uid pair into a kuid) || type == lement used for group quotas && in_egroup_p(make_kgid - Map a user-namespace gid pair into a kgid) Then Break
42  Default
43  If Not Check operation authority Then Return -EPERM
47  Return security_quotactl(cmd, type, id, sb)
Caller
NameDescribe
do_quotactlCopy parameters and call proper function