diff options
author | Chris Wright <chrisw@sous-sol.org> | 2010-05-12 21:28:57 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-21 12:37:31 -0400 |
commit | 2c3c8bea608866d8bd9dcf92657d57fdcac011c5 (patch) | |
tree | f509b958d0a65c46c831dbdd447a81e706dd995a /arch/mips | |
parent | 68d75ed4b84a0806ecd4bc14da4759713b23a532 (diff) |
sysfs: add struct file* to bin_attr callbacks
This allows bin_attr->read,write,mmap callbacks to check file specific data
(such as inode owner) as part of any privilege validation.
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/txx9/generic/setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c index adc69291f9e..575d219b800 100644 --- a/arch/mips/txx9/generic/setup.c +++ b/arch/mips/txx9/generic/setup.c | |||
@@ -905,7 +905,7 @@ struct txx9_sramc_sysdev { | |||
905 | void __iomem *base; | 905 | void __iomem *base; |
906 | }; | 906 | }; |
907 | 907 | ||
908 | static ssize_t txx9_sram_read(struct kobject *kobj, | 908 | static ssize_t txx9_sram_read(struct file *filp, struct kobject *kobj, |
909 | struct bin_attribute *bin_attr, | 909 | struct bin_attribute *bin_attr, |
910 | char *buf, loff_t pos, size_t size) | 910 | char *buf, loff_t pos, size_t size) |
911 | { | 911 | { |
@@ -920,7 +920,7 @@ static ssize_t txx9_sram_read(struct kobject *kobj, | |||
920 | return size; | 920 | return size; |
921 | } | 921 | } |
922 | 922 | ||
923 | static ssize_t txx9_sram_write(struct kobject *kobj, | 923 | static ssize_t txx9_sram_write(struct file *filp, struct kobject *kobj, |
924 | struct bin_attribute *bin_attr, | 924 | struct bin_attribute *bin_attr, |
925 | char *buf, loff_t pos, size_t size) | 925 | char *buf, loff_t pos, size_t size) |
926 | { | 926 | { |