| Function report | 
| 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 activity | Download SCCT | Chinese | 
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:
| Type | Parameter | Name | 
|---|---|---|
| enum lockdown_reason | what | 
| 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 | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |