Module libafl_bolts::os

source ·
Expand description

Operating System specific abstractions

Modules§

  • Unix pipe wrapper for LibAFL
  • On Android, we can only share maps between processes by serializing fds over sockets. On MacOS, we cannot rely on reference counting for Maps. Hence, the unix_shmem_server keeps track of existing maps, creates new maps for clients, and forwards them over unix domain sockets.
  • Signal handling for unix

Structs§

Enums§

Functions§

  • “Safe” wrapper around dup, duplicating the given file descriptor
  • “Safe” wrapper around dup2
  • fork
    Unix has forks.
  • Gets the stringified version of the last errno. This is roughly equivalent to strerror(errno) in C.
  • Get a file descriptor (RawFd) pointing to “/dev/null”
  • Executes the current process from the beginning, as subprocess. use start_self.status()? to wait for the child