linux/fs/sysfs
Eric W. Biederman 7c0ff870d1 sysfs: sysfs_sd_setattr set iattrs unconditionally
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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-02-16 15:42:42 -08:00
..
bin.c Driver core: bin_attribute parameters can often be const* 2009-12-23 11:23:43 -08:00
dir.c sysfs: Add lockdep annotations for the sysfs active reference 2010-01-04 12:34:46 -08:00
file.c sysfs: In sysfs_chmod_file lazily propagate the mode change. 2009-12-11 11:24:54 -08:00
group.c Use WARN() in fs/sysfs 2008-07-26 12:00:07 -07:00
inode.c sysfs: sysfs_sd_setattr set iattrs unconditionally 2010-02-16 15:42:42 -08:00
Kconfig fs/Kconfig: move sysfs out 2009-01-22 13:15:56 +03:00
Makefile
mount.c sysfs: reference sysfs_dirent from sysfs inodes 2009-03-24 16:38:25 -07:00
symlink.c sysfs: Implement sysfs_getattr & sysfs_permission 2009-12-11 11:24:54 -08:00
sysfs.h sysfs: Add lockdep annotations for the sysfs active reference 2010-01-04 12:34:46 -08:00