OSDN Git Service

sysfs: add struct file* to bin_attr callbacks
authorChris Wright <chrisw@sous-sol.org>
Thu, 13 May 2010 01:28:57 +0000 (18:28 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 May 2010 16:37:31 +0000 (09:37 -0700)
commit2c3c8bea608866d8bd9dcf92657d57fdcac011c5
treef509b958d0a65c46c831dbdd447a81e706dd995a
parent68d75ed4b84a0806ecd4bc14da4759713b23a532
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>
52 files changed:
arch/alpha/kernel/pci-sysfs.c
arch/mips/txx9/generic/setup.c
arch/powerpc/sysdev/mv64x60_pci.c
arch/s390/kernel/ipl.c
drivers/acpi/system.c
drivers/base/firmware_class.c
drivers/firmware/dcdbas.c
drivers/firmware/dell_rbu.c
drivers/firmware/efivars.c
drivers/gpu/drm/drm_sysfs.c
drivers/misc/c2port/core.c
drivers/misc/ds1682.c
drivers/misc/eeprom/at24.c
drivers/misc/eeprom/at25.c
drivers/misc/eeprom/eeprom.c
drivers/misc/eeprom/max6875.c
drivers/net/netxen/netxen_nic_main.c
drivers/net/qlcnic/qlcnic_main.c
drivers/pci/hotplug/acpiphp_ibm.c
drivers/pci/pci-sysfs.c
drivers/pcmcia/cistpl.c
drivers/power/olpc_battery.c
drivers/rapidio/rio-sysfs.c
drivers/rtc/rtc-cmos.c
drivers/rtc/rtc-ds1305.c
drivers/rtc/rtc-ds1307.c
drivers/rtc/rtc-ds1511.c
drivers/rtc/rtc-ds1553.c
drivers/rtc/rtc-ds1742.c
drivers/rtc/rtc-m48t59.c
drivers/rtc/rtc-stk17ta8.c
drivers/rtc/rtc-tx4939.c
drivers/s390/cio/chp.c
drivers/scsi/3w-sas.c
drivers/scsi/arcmsr/arcmsr_attr.c
drivers/scsi/ibmvscsi/ibmvfc.c
drivers/scsi/ipr.c
drivers/scsi/lpfc/lpfc_attr.c
drivers/scsi/qla2xxx/qla_attr.c
drivers/staging/udlfb/udlfb.c
drivers/usb/core/sysfs.c
drivers/video/aty/radeon_base.c
drivers/w1/slaves/w1_ds2431.c
drivers/w1/slaves/w1_ds2433.c
drivers/w1/slaves/w1_ds2760.c
drivers/w1/w1.c
drivers/zorro/zorro-sysfs.c
fs/sysfs/bin.c
include/linux/sysfs.h
kernel/ksysfs.c
kernel/module.c
net/bridge/br_sysfs_br.c