Skip to content

Commit e82e4d4

Browse files
committed
Add a couple simple hardening options
This assumes that nobody needs to run software that really needs CONFIG_MODIFY_LDT_SYSCALL. Not tested, but should be rather straightforward.
1 parent d0fd574 commit e82e4d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

config-qubes

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ CONFIG_GCC_PLUGINS=y
3131
CONFIG_GCC_PLUGIN_LATENT_ENTROPY=y
3232
CONFIG_GCC_PLUGIN_STRUCTLEAK=y
3333
CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL=y
34-
## XXX: What's about RANDSTRUCT?
34+
CONFIG_ZERO_CALL_USED_REGS=y
35+
CONFIG_SLUB_DEBUG_ON=y
36+
## XXX: What's about RANDSTRUCT? Answer: not useful against attacks targeting
37+
## Qubes, useful against generic attacks
3538

3639
## Those depend on CONFIG_EXPERT
3740
CONFIG_ARCH_MMAP_RND_BITS=32
@@ -41,6 +44,7 @@ CONFIG_ARCH_MMAP_RND_COMPAT_BITS=16
4144

4245
# CONFIG_LEGACY_VSYSCALL_EMULATE is not set
4346
CONFIG_LEGACY_VSYSCALL_NONE=y
47+
# CONFIG_MODIFY_LDT_SYSCALL is not set
4448

4549
# CONFIG_ACPI_CUSTOM_METHOD is not set
4650

0 commit comments

Comments
 (0)