Package ghidra.pcode.emu.taint.lib
Class TaintEmuUnixFileSystem
java.lang.Object
ghidra.pcode.emu.unix.AbstractEmuUnixFileSystem<org.apache.commons.lang3.tuple.Pair<byte[],TaintVec>>
ghidra.pcode.emu.taint.lib.TaintEmuUnixFileSystem
- All Implemented Interfaces:
EmuUnixFileSystem<org.apache.commons.lang3.tuple.Pair<byte[],TaintVec>>
public class TaintEmuUnixFileSystem
extends AbstractEmuUnixFileSystem<org.apache.commons.lang3.tuple.Pair<byte[],TaintVec>>
A file system containing tainted files
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA taint-contents for a read-only file whose contents are completely taintedstatic classA file whose contents have a taint piecestatic classA taint-contents for a file whose contents are not taintedNested classes/interfaces inherited from interface ghidra.pcode.emu.unix.EmuUnixFileSystem
EmuUnixFileSystem.OpenFlag -
Field Summary
Fields inherited from class ghidra.pcode.emu.unix.AbstractEmuUnixFileSystem
filesByPath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAbstractEmuUnixFile<org.apache.commons.lang3.tuple.Pair<byte[], TaintVec>> A factory for constructing a new file (without adding it to the file system)voidputTaintedFile(String pathname, byte[] contents) Place a tainted file into the file system with the given contentsMethods inherited from class ghidra.pcode.emu.unix.AbstractEmuUnixFileSystem
createOrGetFile, getFile, open, putFile, unlink
-
Constructor Details
-
TaintEmuUnixFileSystem
public TaintEmuUnixFileSystem()
-
-
Method Details
-
newFile
public AbstractEmuUnixFile<org.apache.commons.lang3.tuple.Pair<byte[],TaintVec>> newFile(String pathname, int mode) throws EmuIOException Description copied from interface:EmuUnixFileSystemA factory for constructing a new file (without adding it to the file system)- Specified by:
newFilein interfaceEmuUnixFileSystem<org.apache.commons.lang3.tuple.Pair<byte[],TaintVec>> - Specified by:
newFilein classAbstractEmuUnixFileSystem<org.apache.commons.lang3.tuple.Pair<byte[],TaintVec>> - Parameters:
pathname- the path of the filemode- the mode of the new file- Returns:
- the new file
- Throws:
EmuIOException- if the file cannot be constructed
-
putTaintedFile
Place a tainted file into the file system with the given contents- Parameters:
pathname- the pathname of the filecontents- the concrete contents of the file
-