Without this patch latest changes in ide.c adding CAP_SYS_RAWIO checks are
useless on machines with /proc turned on...
--- linux-2.4.0-test5/drivers/ide/ide-proc.c Tue Jun 13 20:32:00 2000
+++ linux/drivers/ide/ide-proc.c Sat Jul 29 01:22:24 2000
@@ -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
[It's also part of cap-rawio-fixes.diff by Matthew Kirkwood (very good
patch but for 2.3.45... 2.4.0 kernel needs reviewing).]
BTW: linux.kernel.org doesn't allow anonymous, so:
--- linux-2.4.0-test2/include/linux/capability.h Fri Jul 28 20:31:53 2000
+++ linux/include/linux/capability.h Sat Jul 29 01:32:45 2000
@@ -7,7 +7,7 @@
*
* See here for the libcap library ("POSIX draft" compliance):
*
- * ftp://linux.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.2/
+ * ftp://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.2/
*/
#ifndef _LINUX_CAPABILITY_H
Regards
-- Bartlomiej Zolnierkiewicz <bkz@linux-ide.org>- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:28 EST