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
  • 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: EmuUnixFileSystem
      A factory for constructing a new file (without adding it to the file system)
      Specified by:
      newFile in interface EmuUnixFileSystem<org.apache.commons.lang3.tuple.Pair<byte[],TaintVec>>
      Specified by:
      newFile in class AbstractEmuUnixFileSystem<org.apache.commons.lang3.tuple.Pair<byte[],TaintVec>>
      Parameters:
      pathname - the path of the file
      mode - the mode of the new file
      Returns:
      the new file
      Throws:
      EmuIOException - if the file cannot be constructed
    • putTaintedFile

      public void putTaintedFile(String pathname, byte[] contents)
      Place a tainted file into the file system with the given contents
      Parameters:
      pathname - the pathname of the file
      contents - the concrete contents of the file