linux-uconsole/fs/sysfs
Eric W. Biederman 0f102935a6 sysfs: sysfs_sd_setattr set iattrs unconditionally
commit 7c0ff870d1 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>
2010-02-23 07:37:56 -08:00
..
bin.c const: mark struct vm_struct_operations 2009-09-27 11:39:25 -07:00
dir.c sysfs: Don't leak secdata when a sysfs_dirent is freed. 2009-11-05 08:19:18 +11:00
file.c sysfs: Allow sysfs_notify_dirent to be called from interrupt context. 2009-10-14 15:16:25 -07: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-23 07:37:56 -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: Add labeling support for sysfs 2009-09-10 10:11:29 +10:00
sysfs.h sysfs: Add labeling support for sysfs 2009-09-10 10:11:29 +10:00