Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:a simple bsearch

Proto:int groups_search(const struct group_info *group_info, kgid_t grp)

Type:int

Parameter:

TypeParameterName
const struct group_info *group_info
kgid_tgrp
101  If Not group_info Then Return 0
104  left = 0
105  right = ngroups
106  When left < right cycle
107  mid = (left + right) / 2
108  If gid_gt(grp, gid[mid]) Then left = mid + 1
110  Else if gid_lt(grp, gid[mid]) Then right = mid
112  Else Return 1
115  Return 0
Caller
NameDescribe
in_group_pCheck whether we're fsgid/egid or in the supplemental group..
in_egroup_p
audit_filter_rulesCompare a task_struct with an audit_rule. Return 1 on match, 0* otherwise.* If task_creation is true, this is an explicit indication that we are* filtering a task rule at task creation time. This and tsk == current are