]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] md: require CAP_SYS_ADMIN for (re-)configuring md devices via sysfs
authorNeilBrown <neilb@suse.de>
Mon, 10 Jul 2006 11:44:19 +0000 (04:44 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 10 Jul 2006 20:24:17 +0000 (13:24 -0700)
commit2f85c0523419397638e2fc198f81a1f1e6d1eed3
tree4ccf373165581ed898328ca03365abfdd7d23a04
parent4028ae9fed2628d2ee61cb7089a5eed5cc6ec4b8
[PATCH] md: require CAP_SYS_ADMIN for (re-)configuring md devices via sysfs

The ioctl requires CAP_SYS_ADMIN, so sysfs should too.  Note that we don't
require CAP_SYS_ADMIN for reading attributes even though the ioctl does.
There is no reason to limit the read access, and much of the information is
already available via /proc/mdstat

Cc: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/md.c