函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rootid_owns_currentns

函数原型:static bool rootid_owns_currentns(kuid_t kroot)

返回类型:bool

参数:

类型参数名称
kuid_tkroot
326  如果非uid_valid(kroot)则返回:false
329  循环
330  如果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则返回:true
332  如果ns恒等于userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ?退出
336  返回:false
调用者
名称描述
cap_inode_getsecuritygetsecurity: We are called for security
get_vfs_caps_from_diskExtract the on-exec-apply capability sets for an executable file.