Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:may_setgroups

Proto:bool may_setgroups(void)

Type:bool

Parameter:Nothing

179  user_ns = current_user_ns()
181  Return ns_capable(user_ns, Allows forged gids on socket credentials passing. ) && userns_may_setgroups(user_ns)
Caller
NameDescribe
SYSCALL_DEFINE2SMP: Our groups are copy-on-write. We can set them safely* without another task interfering.
SYSCALL_DEFINE2