函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lockdown_is_locked_down - Find out if the kernel is locked down*@what: Tag to use in notice generated if lockdown is in effect

函数原型:static int lockdown_is_locked_down(enum lockdown_reason what)

返回类型:int

参数:

类型参数名称
enum lockdown_reasonwhat
87  如果WARN(what >= LOCKDOWN_CONFIDENTIALITY_MAX, "Invalid lockdown reason")则返回:负EPERM
91  如果kernel_locked_down大于等于what
92  如果lockdown_reasons[what]则打印注释信息("Lockdown: %s: %s is restricted; see man kernel_lockdown.7\n", comm, lockdown_reasons[what])
95  返回:负EPERM
98  返回:0