Greenbone Vulnerability Manager
21.4.2
|
GVM manage layer: Configs. More...
#include "gmp_configs.h"
#include "manage_configs.h"
#include "manage_sql.h"
#include "manage_sql_configs.h"
#include "utils.h"
#include <errno.h>
#include <glib.h>
#include <gvm/util/fileutils.h>
#include <stdlib.h>
#include <string.h>
Macros | |
#define | G_LOG_DOMAIN "md manage" |
GLib log domain. | |
Functions | |
int | config_predefined_uuid (const gchar *config_id) |
Return whether a config is predefined. More... | |
static const gchar * | feed_dir_configs () |
Get path to configs in feed. More... | |
static void | create_feed_config_permissions (const gchar *config_id) |
Grant 'Feed Import Roles' access to a config. More... | |
static int | update_config_from_file (config_t config, const gchar *path) |
Create a config from an XML file. More... | |
static int | create_config_from_file (const gchar *path) |
Create a config from an XML file. More... | |
static void | sync_config_with_feed (const gchar *path) |
Sync a single config with the feed. More... | |
int | sync_configs_with_feed () |
Sync all configs with the feed. More... | |
gboolean | configs_feed_dir_exists () |
Tests if the configs feed directory exists. More... | |
void | manage_sync_configs () |
Sync configs with the feed. | |
GVM manage layer: Configs.
General functions for managing scan configs.
int config_predefined_uuid | ( | const gchar * | config_id | ) |
Return whether a config is predefined.
[in] | config_id | UUID of config. |
gboolean configs_feed_dir_exists | ( | ) |
Tests if the configs feed directory exists.
|
static |
Create a config from an XML file.
[in] | path | Path to config XML. |
|
static |
Grant 'Feed Import Roles' access to a config.
[in] | config_id | UUID of config. |
|
static |
Get path to configs in feed.
|
static |
Sync a single config with the feed.
[in] | path | Path to config XML in feed. |
int sync_configs_with_feed | ( | ) |
Sync all configs with the feed.
Create configs that exists in the feed but not in the db. Update configs in the db that have changed on the feed. Do nothing to configs in db that have been removed from the feed.
|
static |
Create a config from an XML file.
[in] | config | Existing config. |
[in] | path | Full path to config XML. |