mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-30 05:24:52 +02:00
Since we're a forensics program, make sure we only read unless we know the user REALLY wants to write.
This commit is contained in:
@@ -62,7 +62,9 @@ class FileLayer(interfaces.layers.DataLayerInterface):
|
||||
def __init__(self, context, config_path, name, filename):
|
||||
interfaces.layers.DataLayerInterface.__init__(self, context, config_path, name)
|
||||
|
||||
self._file = open(filename, "r+b")
|
||||
# FIXME: Add "+" to the mode once we've determined whether write mode is enabled
|
||||
mode = "rb"
|
||||
self._file = open(filename, mode)
|
||||
self._size = os.path.getsize(filename)
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user