summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2010-02-03 23:13:24 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2010-02-23 07:37:56 -0800
commit0f102935a606e13e923905451c097acf8e87e4cd (patch)
tree0dfc849a322a947584754d6cbcf34d9d0abc563b /drivers/base
parent458c2928268392756c01fafebbebc31403968c2c (diff)
sysfs: sysfs_sd_setattr set iattrs unconditionally
commit 7c0ff870d1ed287504a61ed865f3d728c757436b upstream. There is currently a bug in sysfs_sd_setattr inherited from sysfs_setattr in 2.6.32 where the first time we set the attributes on a sysfs file we allocate backing store but do not set the backing store attributes. Resulting in overly restrictive permissions on sysfs files. The fix is to simply modify the code so that it always executes when we update the sysfs attributes, as we did in 2.6.31 and earlier. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Tested-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions