Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static int lockdown_is_locked_down(enum lockdown_reason what)

Type:int

Parameter:

TypeParameterName
enum lockdown_reasonwhat
87  If WARN(what >= LOCKDOWN_CONFIDENTIALITY_MAX, "Invalid lockdown reason") Then Return -EPERM
91  If kernel_locked_down >= what Then
92  If lockdown_reasons[what] Then pr_notice("Lockdown: %s: %s is restricted; see man kernel_lockdown.7\n", comm, lockdown_reasons[what])
95  Return -EPERM
98  Return 0