summaryrefslogtreecommitdiff
path: root/arch/x86/Kconfig
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2019-11-12 23:40:33 +0300
committerThomas Gleixner <tglx@linutronix.de>2019-11-16 13:24:06 +0300
commit111e7b15cf10f6e973ccf537c70c66a5de539060 (patch)
tree93f6a063e7829376797a00750c338338be0eee7d /arch/x86/Kconfig
parenta24ca9976843156eabbc5f2d798954b5674d1b61 (diff)
downloadlinux-111e7b15cf10f6e973ccf537c70c66a5de539060.tar.xz
x86/ioperm: Extend IOPL config to control ioperm() as well
If iopl() is disabled, then providing ioperm() does not make much sense. Rename the config option and disable/enable both syscalls with it. Guard the code with #ifdefs where appropriate. Suggested-by: Andy Lutomirski <luto@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/Kconfig')
-rw-r--r--arch/x86/Kconfig7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 1f926e396ec1..b162ce1482fc 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1254,10 +1254,13 @@ config X86_VSYSCALL_EMULATION
Disabling this option saves about 7K of kernel size and
possibly 4K of additional runtime pagetable memory.
-config X86_IOPL_EMULATION
- bool "IOPL Emulation"
+config X86_IOPL_IOPERM
+ bool "IOPERM and IOPL Emulation"
default y
---help---
+ This enables the ioperm() and iopl() syscalls which are necessary
+ for legacy applications.
+
Legacy IOPL support is an overbroad mechanism which allows user
space aside of accessing all 65536 I/O ports also to disable
interrupts. To gain this access the caller needs CAP_SYS_RAWIO