|
OpenVAS Scanner 23.23.1
|
This file contains all the "unsafe" functions found in NASL. More...
#include "nasl_cmd_exec.h"#include "../misc/plugutils.h"#include "nasl_debug.h"#include "nasl_func.h"#include "nasl_global_ctxt.h"#include "nasl_lex_ctxt.h"#include "nasl_tree.h"#include "nasl_var.h"#include <errno.h>#include <fcntl.h>#include <glib.h>#include <gvm/base/drop_privileges.h>#include <gvm/base/prefs.h>#include <signal.h>#include <string.h>#include <sys/param.h>#include <sys/stat.h>#include <sys/wait.h>#include <unistd.h>Macros | |
| #define | MAXPATHLEN 4096 |
Functions | |
| static char * | pread_streams (int fdout, int fderr) |
| tree_cell * | nasl_pread (lex_ctxt *lexic) |
| Spawn a process. | |
| tree_cell * | nasl_find_in_path (lex_ctxt *lexic) |
| tree_cell * | nasl_fread (lex_ctxt *lexic) |
| Read file. | |
| tree_cell * | nasl_unlink (lex_ctxt *lexic) |
| Unlink file. | |
| tree_cell * | nasl_fwrite (lex_ctxt *lexic) |
| Write file. | |
| tree_cell * | nasl_get_tmp_dir (lex_ctxt *lexic) |
| tree_cell * | nasl_file_stat (lex_ctxt *lexic) |
| Stat file. | |
| tree_cell * | nasl_file_open (lex_ctxt *lexic) |
| Open file. | |
| tree_cell * | nasl_file_close (lex_ctxt *lexic) |
| Close file. | |
| tree_cell * | nasl_file_read (lex_ctxt *lexic) |
| Read file. | |
| tree_cell * | nasl_file_write (lex_ctxt *lexic) |
| Write file. | |
| tree_cell * | nasl_file_seek (lex_ctxt *lexic) |
| Seek in file. | |
Variables | |
| static pid_t | pid = 0 |
This file contains all the "unsafe" functions found in NASL.
| #define MAXPATHLEN 4096 |
Spawn a process.
| [in] | lexic | Lexical context of NASL interpreter. |
| [in] | cmd | Command to run. |
| [in] | argv | List of arguments. |
| [in] | cd | If set to TRUE the scanner will change it's current directory to the directory where the command was found. |
| [in] | drop_privileges_user | Owner of the spawned process. |
|
static |
|
static |