Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rootid_owns_currentns

Proto:static bool rootid_owns_currentns(kuid_t kroot)

Type:bool

Parameter:

TypeParameterName
kuid_tkroot
326  If Not uid_valid(kroot) Then Return false
329  cycle
330  If m_kuid - Create a uid from a kuid user-namespace pair.*@targ: The user namespace we want a uid in.*@kuid: The kernel internal uid to start with.* Map @kuid into the user-namespace specified by @targ and* return the resulting uid. == 0 Then Return true
332  If ns == userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ? Then Break
336  Return false
Caller
NameDescribe
cap_inode_getsecuritygetsecurity: We are called for security
get_vfs_caps_from_diskExtract the on-exec-apply capability sets for an executable file.