summaryrefslogtreecommitdiffstats
path: root/src/interface/linux/linux_api.c
diff options
context:
space:
mode:
authorMichael Brown2021-03-03 03:24:32 +0100
committerMichael Brown2021-03-03 03:26:42 +0100
commit65bd5c05db2a050a4c0f26ccc0b1e9828b00abbf (patch)
tree8b304e947b9960418ea95007de99ff157931f22b /src/interface/linux/linux_api.c
parent[linux] Validate length of ACPI table read from sysfs (diff)
downloadipxe-65bd5c05db2a050a4c0f26ccc0b1e9828b00abbf.tar.gz
ipxe-65bd5c05db2a050a4c0f26ccc0b1e9828b00abbf.tar.xz
ipxe-65bd5c05db2a050a4c0f26ccc0b1e9828b00abbf.zip
[linux] Do not assume that stat() works on sysfs files
Linux kernel 3.12 and earlier report a zero size via stat() for all ACPI table files in sysfs. There is no way to determine the file size other than by reading the file until EOF. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/linux/linux_api.c')
0 files changed, 0 insertions, 0 deletions