Improve conf and conf testing

This commit is contained in:
2019-01-06 19:30:35 +02:00
parent 31a9156add
commit 1bad24582e
4 changed files with 48 additions and 37 deletions

View File

@@ -1,15 +1,16 @@
# Error codes
100:CONF_DIR_MISSING:"Config directory /etc/rmps is missing!"
101:CONF_DIR_PERM:"Config dir /etc/rmps cannot be accessed, check permissions!"
102:CONF_DIR_NOTDIR:"It appears that /etc/rmps is a file. Should be a directory!"
103:CONF_MISSING:"Config file /etc/rmps/rmps.conf is missing!"
104:CONF_PERM:"Config file /etc/rmps/rmps.conf cannot be accessed, check permissions!"
105:CONF_NOTFILE:"It appears that /etc/rmps/rmps.conf is not a regular file!"
100:CONF_DIR_MISSING:"Config directory %s is missing!"
101:CONF_DIR_PERM:"Config dir %s cannot be accessed, check permissions!"
102:CONF_DIR_NOTDIR:"It appears that %s is a file. Should be a directory!"
103:CONF_MISSING:"Config file %s is missing!"
104:CONF_PERM:"Config file %s cannot be accessed, check permissions!"
105:CONF_NOTFILE:"It appears that %s is not a regular file!"
106:CONF_NOT_READABLE:"Config file %s is not readable!"
# Warning codes
200:CONF_DIR_GUI_INSECURE:"Insecure group for /etc/rmps. Should be 'rmps'!"
201:CONF_DIR_UID_INSECURE:"Insecure owner for /etc/rmps. Should be 'root'!"
202:CONF_DIR_PERM_INSECURE:"Insecure global permissions for /etc/rmps. Should be 0770!"
203:CONF_FILE_GID_INSECURE:"Insecure group for /etc/rmps/rmps.conf. Should be 'rmps'!"
204:CONF_FILE_UID_INSECURE:"Insecure owner for /etc/rmps/rmps.conf. Should be 'root'!"
205:CONF_FILE_PERM_INSECURE:"Insecure global permissions /etc/rmps/rmps.conf. Shold be 0660!"
200:CONF_DIR_GUI_INSECURE:"Insecure group for %s. Should be 'rmps'!"
201:CONF_DIR_UID_INSECURE:"Insecure owner for %s. Should be 'root'!"
202:CONF_DIR_PERM_INSECURE:"Insecure global permissions for %s. Should be 0770!"
203:CONF_FILE_GID_INSECURE:"Insecure group for %s. Should be 'rmps'!"
204:CONF_FILE_UID_INSECURE:"Insecure owner for %s. Should be 'root'!"
205:CONF_FILE_PERM_INSECURE:"Insecure global permissions %s. Should be 0660!"