patch-2.2.17 linux/drivers/block/ide-proc.c
Next file: linux/drivers/block/ide.c
Previous file: linux/drivers/block/ide-probe.c
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Mon Sep 4 18:39:16 2000
- Orig file:
v2.2.16/drivers/block/ide-proc.c
- Orig date:
Mon Sep 4 18:37:28 2000
diff -u --recursive --new-file v2.2.16/drivers/block/ide-proc.c linux/drivers/block/ide-proc.c
@@ -111,7 +111,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
@@ -333,6 +333,7 @@
case ide_rz1000: name = "rz1000"; break;
case ide_trm290: name = "trm290"; break;
case ide_4drives: name = "4drives"; break;
+ case ide_pmac: name = "mac-io"; break;
default: name = "(unknown)"; break;
}
len = sprintf(page, "%s\n", name);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)