Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:If a non-root user executes a setuid-root binary in* !secure(SECURE_NOROOT) mode, then we raise capabilities

Proto:static void warn_setuid_and_fcaps_mixed(const char *fname)

Type:void

Parameter:

TypeParameterName
const char *fname
42  If Not warned Then
43  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
46  warned = 1
Caller
NameDescribe
handle_privileged_roothandle_privileged_root - Handle case of privileged root*@bprm: The execution parameters, including the proposed creds*@has_fcap: Are any file capabilities set?*@effective: Do we have effective root privilege?*@root_uid: This namespace' root UID WRT