函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\quota\quota.c Create Date:2022-07-29 11:10:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:check_quotactl_permission

函数原型:static int check_quotactl_permission(struct super_block *sb, int type, int cmd, qid_t id)

返回类型:int

参数:

类型参数名称
struct super_block *sb
inttype
intcmd
qid_tid
28  :cmd恒等于get quota format used on given filesystem
29  :cmd恒等于sync disk copy of a filesystems quotas
30  :cmd恒等于get information about quota files
31  :cmd恒等于get quota subsystem status
32  :cmd恒等于wer version of get quota
33  :cmd恒等于delalloc flush, updates dquots
34  退出
36  :cmd恒等于get user quota structure
37  :cmd恒等于get disk limits and usage
38  如果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)则退出
42  默认
43  如果非操作权限检查则返回:负EPERM
47  返回:security_quotactl(cmd, type, id, sb)
调用者
名称描述
do_quotactlCopy parameters and call proper function