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>
Showing
- arch/x86/Kconfig 5 additions, 2 deletionsarch/x86/Kconfig
- arch/x86/include/asm/io_bitmap.h 6 additions, 0 deletionsarch/x86/include/asm/io_bitmap.h
- arch/x86/include/asm/processor.h 8 additions, 1 deletionarch/x86/include/asm/processor.h
- arch/x86/include/asm/thread_info.h 6 additions, 1 deletionarch/x86/include/asm/thread_info.h
- arch/x86/kernel/cpu/common.c 17 additions, 9 deletionsarch/x86/kernel/cpu/common.c
- arch/x86/kernel/ioport.c 19 additions, 7 deletionsarch/x86/kernel/ioport.c
- arch/x86/kernel/process.c 4 additions, 0 deletionsarch/x86/kernel/process.c
Please register or sign in to comment