• Patrick Mochel's avatar
    sysfs: Rewrite binary file handling. · 185b8e24
    Patrick Mochel authored
    From Matthew Wilcox.
    
     - Remove sysfs_bin_buffer.  It's a security hole.
     - Remove checks for permissions; the VFS does that.
     - Validate offset & count at the top level.
     - Allow lower levels to return less data than was asked for.
     - Allocate buffer at open & free it at close, not on each read/write.
    185b8e24
bin.c 3.75 KB