mirror of
https://github.com/vxcontrol/soldr-modules.git
synced 2026-07-18 18:44:30 -04:00
auditd: provide configuration settings in UI
This commit is contained in:
@@ -45,9 +45,10 @@ __api.add_cbs{
|
||||
}
|
||||
|
||||
while not __api.is_close() do
|
||||
if os.time() - last_check > check_interval_sec then
|
||||
local now = os.time()
|
||||
if now - last_check > check_interval_sec then
|
||||
last_check = now
|
||||
setup_audit()
|
||||
last_check = os.time()
|
||||
end
|
||||
__api.await(1000)
|
||||
end
|
||||
|
||||
@@ -1,6 +1,41 @@
|
||||
{
|
||||
"additionalProperties": false,
|
||||
"properties": {},
|
||||
"required": [],
|
||||
"properties": {
|
||||
"audit_rules": {
|
||||
"rules": {},
|
||||
"type": "string",
|
||||
"ui": {
|
||||
"columns": 6,
|
||||
"widget": "textarea",
|
||||
"widgetConfig": {
|
||||
"rows": 8
|
||||
}
|
||||
}
|
||||
},
|
||||
"auditd_conf": {
|
||||
"rules": {},
|
||||
"type": "string",
|
||||
"ui": {
|
||||
"columns": 6,
|
||||
"widget": "textarea",
|
||||
"widgetConfig": {
|
||||
"rows": 8
|
||||
}
|
||||
}
|
||||
},
|
||||
"check_interval_sec": {
|
||||
"rules": {},
|
||||
"type": "integer",
|
||||
"ui": {
|
||||
"columns": 4,
|
||||
"widgetConfig": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"audit_rules",
|
||||
"auditd_conf",
|
||||
"check_interval_sec"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
@@ -1 +1,5 @@
|
||||
{}
|
||||
{
|
||||
"audit_rules": "# Managed by SOLDR(auditd)\n-D",
|
||||
"auditd_conf": "# Managed by SOLDR(auditd)",
|
||||
"check_interval_sec": 600
|
||||
}
|
||||
@@ -1 +1,5 @@
|
||||
{}
|
||||
{
|
||||
"audit_rules": "# Managed by SOLDR(auditd)\n-D",
|
||||
"auditd_conf": "# Managed by SOLDR(auditd)",
|
||||
"check_interval_sec": 600
|
||||
}
|
||||
@@ -9,7 +9,38 @@
|
||||
"description": ""
|
||||
}
|
||||
},
|
||||
"config": {},
|
||||
"config": {
|
||||
"audit_rules": {
|
||||
"en": {
|
||||
"title": "Audit rules",
|
||||
"description": "/etc/audit/audit.rules"
|
||||
},
|
||||
"ru": {
|
||||
"title": "Правила аудита",
|
||||
"description": "/etc/audit/audit.rules"
|
||||
}
|
||||
},
|
||||
"auditd_conf": {
|
||||
"en": {
|
||||
"title": "Audit daemon configuration",
|
||||
"description": "/etc/audit/auditd.conf"
|
||||
},
|
||||
"ru": {
|
||||
"title": "Конфигурация демона auditd",
|
||||
"description": "/etc/audit/auditd.conf"
|
||||
}
|
||||
},
|
||||
"check_interval_sec": {
|
||||
"en": {
|
||||
"title": "Check interval, seconds",
|
||||
"description": "Module is checking audit configuration every given interval of time"
|
||||
},
|
||||
"ru": {
|
||||
"title": "Интервал проверки, ceкунды",
|
||||
"description": "Проверять конфигурацию аудита через указанный интервал времени"
|
||||
}
|
||||
}
|
||||
},
|
||||
"secure_config": {},
|
||||
"fields": {},
|
||||
"actions": {},
|
||||
|
||||
Reference in New Issue
Block a user