The patch titled md: require CAP_SYS_ADMIN for (re-)configuring md devices via sysfs has been removed from the -mm tree. Its filename is md-require-cap_sys_admin-for-re-configuring-md-devices-via-sysfs.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: md: require CAP_SYS_ADMIN for (re-)configuring md devices via sysfs From: NeilBrown <neilb@xxxxxxx> 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@xxxxxxxxxxxx> Signed-off-by: Neil Brown <neilb@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/md/md.c | 4 ++++ 1 file changed, 4 insertions(+) diff -puN drivers/md/md.c~md-require-cap_sys_admin-for-re-configuring-md-devices-via-sysfs drivers/md/md.c --- a/drivers/md/md.c~md-require-cap_sys_admin-for-re-configuring-md-devices-via-sysfs +++ a/drivers/md/md.c @@ -1926,6 +1926,8 @@ rdev_attr_store(struct kobject *kobj, st if (!entry->store) return -EIO; + if (!capable(CAP_SYS_ADMIN)) + return -EACCES; return entry->store(rdev, page, length); } @@ -2859,6 +2861,8 @@ md_attr_store(struct kobject *kobj, stru if (!entry->store) return -EIO; + if (!capable(CAP_SYS_ADMIN)) + return -EACCES; rv = mddev_lock(mddev); if (!rv) { rv = entry->store(mddev, page, length); _ Patches currently in -mm which might be from neilb@xxxxxxx are origin.patch git-klibc.patch md-dm-reduce-stack-usage-with-stacked-block-devices.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html