[Openvas-commits] r6257 - in trunk/openvas-manager: . doc
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Dec 25 21:19:23 CET 2009
Author: mattm
Date: 2009-12-25 21:19:21 +0100 (Fri, 25 Dec 2009)
New Revision: 6257
Modified:
trunk/openvas-manager/ChangeLog
trunk/openvas-manager/doc/db_postgres.sql
Log:
* doc/db_postgres.sql (agents, escalator_condition_data)
(escalator_event_data, escalator_method_data, escalators)
(task_files, task_escalators, nvt_preferences): New tables.
(meta): Add field id. Add type to name.
(nvt_selectors): Add field family.
(targets): Add fields comment and lsc_credential.
(config): Add comment and cache fields.
(tasks): Add fields hidden, description, run_status, start_time, end_time,
Move field comment up.
(reports): Add fields hidden and scan_run_status.
(report_hosts): Add fields attack_state, current_port and max_port.
(lsc_credentials): Add fields login, password, public_key and private_key.
Rename dog to exe.
Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog 2009-12-25 19:39:36 UTC (rev 6256)
+++ trunk/openvas-manager/ChangeLog 2009-12-25 20:19:21 UTC (rev 6257)
@@ -1,5 +1,21 @@
2009-12-25 Matthew Mundell <matthew.mundell at intevation.de>
+ * doc/db_postgres.sql (agents, escalator_condition_data)
+ (escalator_event_data, escalator_method_data, escalators)
+ (task_files, task_escalators, nvt_preferences): New tables.
+ (meta): Add field id. Add type to name.
+ (nvt_selectors): Add field family.
+ (targets): Add fields comment and lsc_credential.
+ (config): Add comment and cache fields.
+ (tasks): Add fields hidden, description, run_status, start_time, end_time,
+ Move field comment up.
+ (reports): Add fields hidden and scan_run_status.
+ (report_hosts): Add fields attack_state, current_port and max_port.
+ (lsc_credentials): Add fields login, password, public_key and private_key.
+ Rename dog to exe.
+
+2009-12-25 Matthew Mundell <matthew.mundell at intevation.de>
+
Add new condition "Threat level at least".
* src/manage.c (escalator_data): Declare.
Modified: trunk/openvas-manager/doc/db_postgres.sql
===================================================================
--- trunk/openvas-manager/doc/db_postgres.sql 2009-12-25 19:39:36 UTC (rev 6256)
+++ trunk/openvas-manager/doc/db_postgres.sql 2009-12-25 20:19:21 UTC (rev 6257)
@@ -1,7 +1,42 @@
CREATE TABLE meta (
- name UNIQUE NOT NULL,
+ id integer PRIMARY KEY,
+ name text UNIQUE NOT NULL,
value text);
+CREATE TABLE agents (
+ id integer PRIMARY KEY,
+ name text UNIQUE NOT NULL,
+ comment text,
+ installer text,
+ howto_install text,
+ howto_use text);
+
+CREATE TABLE escalator_condition_data (
+ id integer PRIMARY KEY,
+ escalator integer REFERENCES escalators (id) ON DELETE RESTRICT,
+ name text,
+ data text);
+
+CREATE TABLE escalator_event_data (
+ id integer PRIMARY KEY,
+ escalator integer REFERENCES escalators (id) ON DELETE RESTRICT,
+ name text,
+ data text);
+
+CREATE TABLE escalator_method_data (
+ id integer PRIMARY KEY,
+ escalator integer REFERENCES escalators (id) ON DELETE RESTRICT,
+ name text,
+ data text);
+
+CREATE TABLE escalators (
+ id integer PRIMARY KEY,
+ name text UNIQUE NOT NULL,
+ comment text,
+ event integer,
+ condition integer,
+ method integer);
+
CREATE TABLE users (
id integer PRIMARY KEY,
name text UNIQUE NOT NULL,
@@ -11,16 +46,24 @@
name text,
exclude boolean,
type integer,
- family_or_nvt text);
+ family_or_nvt text,
+ family text);
CREATE TABLE targets (
name text PRIMARY KEY,
- hosts text);
+ hosts text,
+ comment text,
+ lsc_credential integer REFERENCES lsc_credentials (id) ON DELETE RESTRICT);
CREATE TABLE configs (
id integer PRIMARY KEY,
name text UNIQUE NOT NULL,
- nvt_selector text REFERENCES nvt_selectors (name) ON DELETE RESTRICT);
+ nvt_selector text REFERENCES nvt_selectors (name) ON DELETE RESTRICT,
+ comment text,
+ family_count integer,
+ nvt_count integer,
+ families_growing integer,
+ nvts_growing integer);
CREATE TABLE config_preferences (
config integer PRIMARY KEY REFERENCES configs (id) ON DELETE RESTRICT,
@@ -32,11 +75,27 @@
id integer PRIMARY KEY,
uuid text UNIQUE NOT NULL,
name text,
+ hidden integer,
+ comment text,
+ description text,
owner integer REFERENCES users (id) ON DELETE RESTRICT,
+ run_status integer,
+ start_time date,
+ end_time date,
config integer REFERENCES configs (name) ON DELETE RESTRICT,
- target integer REFERENCES targets (name) ON DELETE RESTRICT,
- comment text);
+ target integer REFERENCES targets (name) ON DELETE RESTRICT);
+CREATE TABLE task_files (
+ id integer PRIMARY KEY,
+ task integer REFERENCES tasks (id) ON DELETE RESTRICT,
+ name text,
+ content text);
+
+CREATE TABLE task_escalators (
+ id integer PRIMARY KEY,
+ task integer REFERENCES tasks (id) ON DELETE RESTRICT,
+ escalator integer REFERENCES escalators (id) ON DELETE RESTRICT);
+
CREATE TABLE results (
id integer PRIMARY KEY,
task integer REFERENCES tasks (id) ON DELETE RESTRICT,
@@ -50,24 +109,34 @@
CREATE TABLE reports (
id integer PRIMARY KEY,
uuid text UNIQUE NOT NULL,
+ hidden integer,
task integer REFERENCES tasks (id) ON DELETE RESTRICT,
date date,
start_time date,
end_time date,
nbefile text,
- comment text);
+ comment text,
+ scan_run_status integer);
CREATE TABLE report_hosts (
id integer PRIMARY KEY,
report integer REFERENCES reports (id) ON DELETE RESTRICT,
host text,
start_time date,
- end_time date);
+ end_time date,
+ attack_state INTEGER,
+ current_port text,
+ max_port text);
CREATE TABLE report_results (
report integer PRIMARY KEY REFERENCES reports (id) ON DELETE RESTRICT,
result integer PRIMARY KEY REFERENCES results (id) ON DELETE RESTRICT);
+CREATE TABLE nvt_preferences (
+ id integer PRIMARY KEY,
+ name text UNIQUE NOT NULL,
+ value text);
+
CREATE TABLE nvts (
id integer PRIMARY KEY,
oid text UNIQUE NOT NULL,
@@ -87,7 +156,11 @@
CREATE TABLE lsc_credentials (
id integer PRIMARY KEY,
name text UNIQUE NOT NULL,
+ login text,
+ password text,
comment text,
+ public_key text,
+ private_key text,
rpm bytea,
deb bytea,
- dog bytea);
+ exe bytea);
More information about the Openvas-commits
mailing list