函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:red_fscmp - Compare two credentials with respect to filesystem access.*@a: The first credential*@b: The second credential* cred_cmp() will return zero if both credentials have the same* fsuid, fsgid, and supplementary groups. That is, if they will both

函数原型:int cred_fscmp(const struct cred *a, const struct cred *b)

返回类型:int

参数:

类型参数名称
const struct cred *a
const struct cred *b
618  如果a恒等于b则返回:0
620  如果uid_lt( UID for VFS ops , UID for VFS ops )则返回:负1
622  如果uid_gt( UID for VFS ops , UID for VFS ops )则返回:1
625  如果gid_lt( GID for VFS ops , GID for VFS ops )则返回:负1
627  如果gid_gt( GID for VFS ops , GID for VFS ops )则返回:1
630  ga等于组补充信息
631  gb等于组补充信息
632  如果ga恒等于gb则返回:0
634  如果(ga == NULL)则返回:负1
636  如果(gb == NULL)则返回:1
638  如果ngroups小于ngroups则返回:负1
640  如果ngroups大于ngroups则返回:1
643 g小于ngroups循环
644  如果gid_lt(gid[g], gid[g])则返回:负1
646  如果gid_gt(gid[g], gid[g])则返回:1
649  返回:0