From d6434e1042f3b0a6dfe1b1f615af369486f9b1fa Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 9 Oct 1999 00:00:47 +0000 Subject: Merge with 2.3.19. --- arch/arm/kernel/ioport.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 arch/arm/kernel/ioport.c (limited to 'arch/arm/kernel/ioport.c') diff --git a/arch/arm/kernel/ioport.c b/arch/arm/kernel/ioport.c new file mode 100644 index 000000000..bae897747 --- /dev/null +++ b/arch/arm/kernel/ioport.c @@ -0,0 +1,27 @@ +/* + * linux/arch/arm/kernel/ioport.c + * + * IO permission support for ARM. + */ + +#include +#include +#include +#include +#include + +#include +#include + +asmlinkage int sys_iopl(unsigned long turn_on) +{ + if (turn_on && !capable(CAP_SYS_RAWIO)) + return -EPERM; + + /* + * We only support an on_off approach + */ + modify_domain(DOMAIN_IO, turn_on ? DOMAIN_MANAGER : DOMAIN_CLIENT); + + return 0; +} -- cgit v1.2.3