patch-2.4.0-test9 linux/drivers/ide/ide-proc.c
Next file: linux/drivers/ide/ide.c
Previous file: linux/drivers/ide/ide-pci.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon Sep 18 14:57:01 2000
- Orig file:
v2.4.0-test8/linux/drivers/ide/ide-proc.c
- Orig date:
Thu Apr 13 22:54:26 2000
diff -u --recursive --new-file v2.4.0-test8/linux/drivers/ide/ide-proc.c linux/drivers/ide/ide-proc.c
@@ -159,7 +159,7 @@
unsigned long startn = 0, n, flags;
const char *start = NULL, *msg = NULL;
- if (!capable(CAP_SYS_ADMIN))
+ if (!capable(CAP_SYS_ADMIN) || !capable(CAP_SYS_RAWIO))
return -EACCES;
/*
* Skip over leading whitespace
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)