mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-08-17 20:35:40 +02:00
add ATTRIBUTE_NAME_MAX_SIZE constant
This commit is contained in:
@@ -432,6 +432,17 @@ VMCOREINFO_MAGIC = b"VMCOREINFO\x00"
|
||||
VMCOREINFO_MAGIC_ALIGNED = VMCOREINFO_MAGIC + b"\x00"
|
||||
OSRELEASE_TAG = b"OSRELEASE="
|
||||
|
||||
ATTRIBUTE_NAME_MAX_SIZE = 255
|
||||
"""
|
||||
In 5.9-rc1+, the Linux kernel limits the READ size of a section bin_attribute name to MODULE_SECT_READ_SIZE:
|
||||
|
||||
- https://elixir.bootlin.com/linux/v6.15-rc4/source/kernel/module/sysfs.c#L106
|
||||
- https://github.com/torvalds/linux/commit/11990a5bd7e558e9203c1070fc52fb6f0488e75b
|
||||
|
||||
However, the raw section name loaded from the .ko ELF can in theory be thousands of characters,
|
||||
and unless we do a NULL terminated search we can't set a perfect value.
|
||||
"""
|
||||
|
||||
|
||||
@dataclass
|
||||
class TaintFlag:
|
||||
|
||||
Reference in New Issue
Block a user