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)
commit111e7b15cf10f6e973ccf537c70c66a5de539060
tree93f6a063e7829376797a00750c338338be0eee7d
parenta24ca9976843156eabbc5f2d798954b5674d1b61
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