]> git.baikalelectronics.ru Git - kernel.git/commit
x86/ioperm: Extend IOPL config to control ioperm() as well
authorThomas Gleixner <tglx@linutronix.de>
Tue, 12 Nov 2019 20:40:33 +0000 (21:40 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 16 Nov 2019 10:24:06 +0000 (11:24 +0100)
commitb19ba9714815fff696a1ca89f76729263df9b437
tree93f6a063e7829376797a00750c338338be0eee7d
parentacecee6e0ee07690282f1de8590905218f96b333
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>
arch/x86/Kconfig
arch/x86/include/asm/io_bitmap.h
arch/x86/include/asm/processor.h
arch/x86/include/asm/thread_info.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/ioport.c
arch/x86/kernel/process.c