File tree 2 files changed +14
-1
lines changed
Documentation/admin-guide
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 3154
3154
to extract confidential information from the kernel
3155
3155
are also disabled.
3156
3156
3157
+ lockdown_hibernate [HIBERNATION]
3158
+ Enable hibernation even if lockdown is enabled. Enable this only if
3159
+ your swap is encrypted and secured properly, as an attacker can
3160
+ modify the kernel offline during hibernation.
3161
+
3157
3162
locktorture.acq_writer_lim= [KNL]
3158
3163
Set the time limit in jiffies for a lock
3159
3164
acquisition. Acquisitions exceeding this limit
Original file line number Diff line number Diff line change 37
37
#include "power.h"
38
38
39
39
40
+ static int lockdown_hibernate ;
40
41
static int nocompress ;
41
42
static int noresume ;
42
43
static int nohibernate ;
@@ -92,7 +93,7 @@ void hibernate_release(void)
92
93
bool hibernation_available (void )
93
94
{
94
95
return nohibernate == 0 &&
95
- !security_locked_down (LOCKDOWN_HIBERNATION ) &&
96
+ ( lockdown_hibernate || !security_locked_down (LOCKDOWN_HIBERNATION ) ) &&
96
97
!secretmem_active () && !cxl_mem_active ();
97
98
}
98
99
@@ -1434,6 +1435,12 @@ static int __init nohibernate_setup(char *str)
1434
1435
return 1 ;
1435
1436
}
1436
1437
1438
+ static int __init lockdown_hibernate_setup (char * str )
1439
+ {
1440
+ lockdown_hibernate = 1 ;
1441
+ return 1 ;
1442
+ }
1443
+
1437
1444
static const char * const comp_alg_enabled [] = {
1438
1445
#if IS_ENABLED (CONFIG_CRYPTO_LZO )
1439
1446
COMPRESSION_ALGO_LZO ,
@@ -1492,3 +1499,4 @@ __setup("hibernate=", hibernate_setup);
1492
1499
__setup ("resumewait" , resumewait_setup );
1493
1500
__setup ("resumedelay=" , resumedelay_setup );
1494
1501
__setup ("nohibernate" , nohibernate_setup );
1502
+ __setup ("lockdown_hibernate" , lockdown_hibernate_setup );
You can’t perform that action at this time.
0 commit comments