cfengine  3.15.4
About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version.
  Fossies Dox: cfengine-3.15.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

cf3.defs.h File Reference
#include <platform.h>
#include <compiler.h>
#include <hash_method.h>
#include <sequence.h>
#include <logging.h>
#include <definitions.h>
#include <cfnet.h>
#include <misc_lib.h>
#include <statistics.h>
#include <json.h>
#include <rlist.h>
#include <dbm_api.h>
#include <prototypes3.h>
#include <alloc.h>
#include <cf3.extern.h>
Include dependency graph for cf3.defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MonitoringSlot
 
struct  Event
 
struct  Averages
 
struct  LockData
 
struct  UidList_
 
struct  GidList_
 
struct  Rval
 
struct  ConstraintSyntax_
 
struct  BodySyntax_
 
struct  PromiseTypeSyntax
 
struct  Acl
 
struct  CfLock
 
struct  Mount
 
struct  DirectoryRecursion
 
struct  TransactionContext
 
struct  DefineClasses
 
struct  PackageManager_
 
struct  PackageItem_
 
struct  PersistentClassInfo
 
struct  FilePerms
 
struct  FileSelect
 
struct  FileDelete
 
struct  FileRename
 
struct  FileChange
 
struct  FileLink
 
struct  ExecContain
 
struct  ProcessCount
 
struct  ProcessSelect
 
struct  ContextConstraint
 
struct  EditDefaults
 
struct  LineSelect
 
struct  EditXml
 
struct  EditLocation
 
struct  EditRegion
 
struct  EditColumn
 
struct  EditReplace
 
struct  StorageMount
 
struct  StorageVolume
 
struct  Report
 
struct  Packages
 
struct  PackageModuleBody
 
struct  PackagePromiseContext
 
struct  NewPackages
 
struct  Measurement
 
struct  Database
 
struct  User
 
struct  Services
 
struct  Environments
 
struct  FileCopy
 
struct  Attributes
 

Macros

#define CF_MAXFRAGMENT   19 /* abbreviate long promise names to 2*MAXFRAGMENT+3 */
 
#define CF_NONCELEN   (CF_BUFSIZE/16)
 
#define CF_MAXLINKSIZE   256
 
#define CF_PROCCOLS   16
 
#define CF_MACROALPHABET   61 /* a-z, A-Z plus a bit */
 
#define CF_ALPHABETSIZE   256
 
#define CF_SAMEMODE   7777
 
#define CF_SAME_OWNER   ((uid_t)-1)
 
#define CF_UNKNOWN_OWNER   ((uid_t)-2)
 
#define CF_SAME_GROUP   ((gid_t)-1)
 
#define CF_UNKNOWN_GROUP   ((gid_t)-2)
 
#define CF_INFINITY   ((int)999999999)
 
#define CF_MONDAY_MORNING   345600
 
#define MINUTES_PER_HOUR   60
 
#define SECONDS_PER_MINUTE   60
 
#define SECONDS_PER_HOUR   (60 * SECONDS_PER_MINUTE)
 
#define SECONDS_PER_DAY   (24 * SECONDS_PER_HOUR)
 
#define SECONDS_PER_WEEK   (7 * SECONDS_PER_DAY)
 
#define SECONDS_PER_YEAR   (365 * SECONDS_PER_DAY)
 
#define HOURS_PER_SHIFT   6
 
#define SECONDS_PER_SHIFT   (HOURS_PER_SHIFT * SECONDS_PER_HOUR)
 
#define SHIFTS_PER_DAY   4
 
#define SHIFTS_PER_WEEK   (4*7)
 
#define MAX_MONTH_NAME   9
 
#define MAX_DIGEST_BYTES   (512 / 8) /* SHA-512 */
 
#define MAX_DIGEST_HEX   (MAX_DIGEST_BYTES * 2)
 
#define CF_FILECHANGE   "file_change.log"
 
#define CF_FILECHANGE_NEW   "file_changes.log"
 
#define CF_PROMISE_LOG   "promise_summary.log"
 
#define CF_ENV_FILE   "env_data"
 
#define CF_DB_REPAIR_TRIGGER   "db_repair_required"
 
#define CF_SAVED   ".cfsaved"
 
#define CF_EDITED   ".cfedited"
 
#define CF_NEW   ".cfnew"
 
#define CFD_TERMINATOR   "---cfXen/gine/cfXen/gine---"
 
#define CFD_TRUE   "CFD_TRUE"
 
#define CFD_FALSE   "CFD_FALSE"
 
#define CFD_FALSE_SIZE   sizeof(CFD_FALSE)
 
#define CF_ANYCLASS   "any"
 
#define CF_SMALL_OFFSET   2
 
#define CF_NS   ':'
 
#define CF_MANGLED_NS   '*'
 
#define CF_MANGLED_SCOPE   '#'
 
#define CF_FAILEDSTR   "BAD: Unspecified server refusal (see verbose server output)"
 
#define CF_CHANGEDSTR1   "BAD: File changed " /* Split this so it cannot be recognized */
 
#define CF_CHANGEDSTR2   "while copying"
 
#define CF_START_DOMAIN   "undefined.domain"
 
#define CF_GRAINS   64
 
#define CF_NETATTR   7 /* icmp udp dns tcpsyn tcpfin tcpack */
 
#define CF_MEASURE_INTERVAL   (5.0*60.0)
 
#define CF_SHIFT_INTERVAL   (6*3600)
 
#define CF_OBSERVABLES   100
 
#define EC_EVAL_ABORTED   6 /* like SIGABRT, but signal exit codes are 120+SIG */
 
#define NULLFILE   "/dev/null"
 
#define EXEC_SUFFIX   ""
 
#define CF_WORDSIZE   8 /* Number of bytes in a word */
 
#define CF_UNDEFINED   -1
 
#define CF_NOINT   -678L
 
#define CF_UNDEFINED_ITEM   (void *)0x1234
 
#define DEFAULTMODE   ((mode_t)0755)
 
#define CF_DONEPASSES   4
 
#define CFPULSETIME   60
 
#define CF_COMMONC   "common"
 
#define CF_AGENTC   "agent"
 
#define CF_SERVERC   "server"
 
#define CF_MONITORC   "monitor"
 
#define CF_EXECC   "executor"
 
#define CF_RUNC   "runagent"
 
#define CF_KEYGEN   "keygenerator"
 
#define CF_HUBC   "hub"
 
#define CF_BUNDLE   (void*)1234 /* any non-null value, not used */
 
#define CF_HIGHINIT   999999L
 
#define CF_LOWINIT   -999999L
 
#define CF_SIGNALRANGE   "hup,int,trap,kill,pipe,cont,abrt,stop,quit,term,child,usr1,usr2,bus,segv"
 
#define CF_BOOL   "true,false,yes,no,on,off"
 
#define CF_LINKRANGE   "symlink,hardlink,relative,absolute"
 
#define CF_TIMERANGE   "0,2147483647" /* i.e. "0,0x7fffffff" */
 
#define CF_VALRANGE   "0,99999999999"
 
#define CF_INTRANGE   "-99999999999,99999999999"
 
#define CF_INTLISTRANGE   "[-0-9_$(){}\\[\\].]+"
 
#define CF_REALRANGE   "-9.99999E100,9.99999E100"
 
#define CF_CHARRANGE   "^.$"
 
#define CF_MODERANGE   "[0-7augorwxst,+-=]+"
 
#define CF_BSDFLAGRANGE   "[+-]*[(arch|archived|nodump|opaque|sappnd|sappend|schg|schange|simmutable|sunlnk|sunlink|uappnd|uappend|uchg|uchange|uimmutable|uunlnk|uunlink)]+"
 
#define CF_CLASSRANGE   "[a-zA-Z0-9_!&@@$|.()\\[\\]{}:]+"
 
#define CF_IDRANGE   "[a-zA-Z0-9_$(){}\\[\\].:]+"
 
#define CF_USERRANGE   "[a-zA-Z0-9_$.-]+"
 
#define CF_IPRANGE   "[a-zA-Z0-9_$(){}.:-]+"
 
#define CF_FNCALLRANGE   "[a-zA-Z0-9_(){}.$@]+"
 
#define CF_NAKEDLRANGE   "@[(][a-zA-Z0-9_$(){}\\[\\].:]+[)]"
 
#define CF_ANYSTRING   ".*"
 
#define CF_KEYSTRING   "^(SHA|MD5)=[0123456789abcdef]*$"
 
#define CF_ABSPATHRANGE   "\"?(/.*)"
 
#define CF_PATHRANGE   ".+"
 
#define SOFTWARE_PACKAGES_CACHE   "software_packages.csv"
 
#define SOFTWARE_PATCHES_CACHE   "software_patches_avail.csv"
 
#define PACKAGES_CONTEXT   "cf_pack_context"
 
#define PACKAGES_CONTEXT_ANYVER   "cf_pack_context_anyver"
 
#define OVECCOUNT   30
 
#define PROCESS_SELECT_INIT
 
#define ZeroAttributes
 

Typedefs

typedef struct Item_ Item
 
typedef struct UidList_ UidList
 
typedef struct GidList_ GidList
 
typedef struct Policy_ Policy
 
typedef struct Bundle_ Bundle
 
typedef struct Body_ Body
 
typedef struct Promise_ Promise
 
typedef struct PromiseType_ PromiseType
 
typedef struct FnCall_ FnCall
 
typedef struct EvalContext_ EvalContext
 
typedef struct Rlist_ Rlist
 
typedef struct ConstraintSyntax_ ConstraintSyntax
 
typedef struct BodySyntax_ BodySyntax
 
typedef bool(* PromiseCheckFn) (const Promise *pp, Seq *errors)
 
typedef bool(* BodyCheckFn) (const Body *body, Seq *errors)
 
typedef struct Constraint_ Constraint
 
typedef struct PackageItem_ PackageItem
 
typedef struct PackageManager_ PackageManager
 
typedef struct ServerConnectionState_ ServerConnectionState
 

Enumerations

enum  PromiseResult {
  PROMISE_RESULT_SKIPPED = 's' , PROMISE_RESULT_NOOP = 'n' , PROMISE_RESULT_CHANGE = 'c' , PROMISE_RESULT_WARN = 'w' ,
  PROMISE_RESULT_FAIL = 'f' , PROMISE_RESULT_DENIED = 'd' , PROMISE_RESULT_TIMEOUT = 't' , PROMISE_RESULT_INTERRUPTED = 'i'
}
 
enum  observables {
  ob_users , ob_rootprocs , ob_otherprocs , ob_diskfree ,
  ob_loadavg , ob_netbiosns_in , ob_netbiosns_out , ob_netbiosdgm_in ,
  ob_netbiosdgm_out , ob_netbiosssn_in , ob_netbiosssn_out , ob_imap_in ,
  ob_imap_out , ob_cfengine_in , ob_cfengine_out , ob_nfsd_in ,
  ob_nfsd_out , ob_smtp_in , ob_smtp_out , ob_www_in ,
  ob_www_out , ob_ftp_in , ob_ftp_out , ob_ssh_in ,
  ob_ssh_out , ob_wwws_in , ob_wwws_out , ob_icmp_in ,
  ob_icmp_out , ob_udp_in , ob_udp_out , ob_dns_in ,
  ob_dns_out , ob_tcpsyn_in , ob_tcpsyn_out , ob_tcpack_in ,
  ob_tcpack_out , ob_tcpfin_in , ob_tcpfin_out , ob_tcpmisc_in ,
  ob_tcpmisc_out , ob_webaccess , ob_weberrors , ob_syslog ,
  ob_messages , ob_temp0 , ob_temp1 , ob_temp2 ,
  ob_temp3 , ob_cpuall , ob_cpu0 , ob_cpu1 ,
  ob_cpu2 , ob_cpu3 , ob_microsoft_ds_in , ob_microsoft_ds_out ,
  ob_www_alt_in , ob_www_alt_out , ob_imaps_in , ob_imaps_out ,
  ob_ldap_in , ob_ldap_out , ob_ldaps_in , ob_ldaps_out ,
  ob_mongo_in , ob_mongo_out , ob_mysql_in , ob_mysql_out ,
  ob_postgresql_in , ob_postgresql_out , ob_ipp_in , ob_ipp_out ,
  ob_spare
}
 
enum  CfSize { CF_SIZE_ABS , CF_SIZE_PERCENT }
 
enum  PersistentClassPolicy { CONTEXT_STATE_POLICY_RESET , CONTEXT_STATE_POLICY_PRESERVE , CONTEXT_STATE_POLICY_RESET , CONTEXT_STATE_POLICY_PRESERVE }
 
enum  DataType {
  CF_DATA_TYPE_STRING , CF_DATA_TYPE_INT , CF_DATA_TYPE_REAL , CF_DATA_TYPE_STRING_LIST ,
  CF_DATA_TYPE_INT_LIST , CF_DATA_TYPE_REAL_LIST , CF_DATA_TYPE_OPTION , CF_DATA_TYPE_OPTION_LIST ,
  CF_DATA_TYPE_BODY , CF_DATA_TYPE_BUNDLE , CF_DATA_TYPE_CONTEXT , CF_DATA_TYPE_CONTEXT_LIST ,
  CF_DATA_TYPE_INT_RANGE , CF_DATA_TYPE_REAL_RANGE , CF_DATA_TYPE_COUNTER , CF_DATA_TYPE_CONTAINER ,
  CF_DATA_TYPE_NONE
}
 
enum  AgentType {
  AGENT_TYPE_COMMON , AGENT_TYPE_AGENT , AGENT_TYPE_SERVER , AGENT_TYPE_MONITOR ,
  AGENT_TYPE_EXECUTOR , AGENT_TYPE_RUNAGENT , AGENT_TYPE_KEYGEN , AGENT_TYPE_HUB ,
  AGENT_TYPE_NOAGENT
}
 
enum  CommonControl {
  COMMON_CONTROL_BUNDLESEQUENCE , COMMON_CONTROL_GOALPATTERNS , COMMON_CONTROL_IGNORE_MISSING_BUNDLES , COMMON_CONTROL_IGNORE_MISSING_INPUTS ,
  COMMON_CONTROL_INPUTS , COMMON_CONTROL_VERSION , COMMON_CONTROL_LASTSEEN_EXPIRE_AFTER , COMMON_CONTROL_OUTPUT_PREFIX ,
  COMMON_CONTROL_DOMAIN , COMMON_CONTROL_REQUIRE_COMMENTS , COMMON_CONTROL_LICENSES , COMMON_CONTROL_SITE_CLASSES ,
  COMMON_CONTROL_SYSLOG_HOST , COMMON_CONTROL_SYSLOG_PORT , COMMON_CONTROL_FIPS_MODE , COMMON_CONTROL_BWLIMIT ,
  COMMON_CONTROL_CACHE_SYSTEM_FUNCTIONS , COMMON_CONTROL_PROTOCOL_VERSION , COMMON_CONTROL_TLS_CIPHERS , COMMON_CONTROL_TLS_MIN_VERSION ,
  COMMON_CONTROL_PACKAGE_INVENTORY , COMMON_CONTROL_PACKAGE_MODULE , COMMON_CONTROL_MAX
}
 
enum  AgentControl {
  AGENT_CONTROL_ABORTCLASSES , AGENT_CONTROL_ABORTBUNDLECLASSES , AGENT_CONTROL_ADDCLASSES , AGENT_CONTROL_AGENTACCESS ,
  AGENT_CONTROL_AGENTFACILITY , AGENT_CONTROL_ALLCLASSESREPORT , AGENT_CONTROL_ALWAYSVALIDATE , AGENT_CONTROL_AUDITING ,
  AGENT_CONTROL_BINARYPADDINGCHAR , AGENT_CONTROL_BINDTOINTERFACE , AGENT_CONTROL_HASHUPDATES , AGENT_CONTROL_CHILDLIBPATH ,
  AGENT_CONTROL_CHECKSUM_ALERT_TIME , AGENT_CONTROL_DEFAULTCOPYTYPE , AGENT_CONTROL_DRYRUN , AGENT_CONTROL_EDITBINARYFILESIZE ,
  AGENT_CONTROL_EDITFILESIZE , AGENT_CONTROL_ENVIRONMENT , AGENT_CONTROL_EXCLAMATION , AGENT_CONTROL_EXPIREAFTER ,
  AGENT_CONTROL_FSINGLECOPY , AGENT_CONTROL_FAUTODEFINE , AGENT_CONTROL_HOSTNAMEKEYS , AGENT_CONTROL_IFELAPSED ,
  AGENT_CONTROL_INFORM , AGENT_CONTROL_INTERMITTENCY , AGENT_CONTROL_MAX_CHILDREN , AGENT_CONTROL_MAXCONNECTIONS ,
  AGENT_CONTROL_MOUNTFILESYSTEMS , AGENT_CONTROL_NONALPHANUMFILES , AGENT_CONTROL_REPCHAR , AGENT_CONTROL_REFRESH_PROCESSES ,
  AGENT_CONTROL_REPOSITORY , AGENT_CONTROL_SECUREINPUT , AGENT_CONTROL_SENSIBLECOUNT , AGENT_CONTROL_SENSIBLESIZE ,
  AGENT_CONTROL_SKIPIDENTIFY , AGENT_CONTROL_SUSPICIOUSNAMES , AGENT_CONTROL_SYSLOG , AGENT_CONTROL_TRACK_VALUE ,
  AGENT_CONTROL_TIMEZONE , AGENT_CONTROL_TIMEOUT , AGENT_CONTROL_VERBOSE , AGENT_CONTROL_REPORTCLASSLOG ,
  AGENT_CONTROL_SELECT_END_MATCH_EOF , AGENT_CONTROL_NONE
}
 
enum  ExecControl {
  EXEC_CONTROL_SPLAYTIME , EXEC_CONTROL_MAILFROM , EXEC_CONTROL_MAILTO , EXEC_CONTROL_MAILSUBJECT ,
  EXEC_CONTROL_SMTPSERVER , EXEC_CONTROL_MAILMAXLINES , EXEC_CONTROL_MAILFILTER_INCLUDE , EXEC_CONTROL_MAILFILTER_EXCLUDE ,
  EXEC_CONTROL_SCHEDULE , EXEC_CONTROL_EXECUTORFACILITY , EXEC_CONTROL_EXECCOMMAND , EXEC_CONTROL_AGENT_EXPIREAFTER ,
  EXEC_CONTROL_NONE
}
 
enum  EditOrder { EDIT_ORDER_BEFORE , EDIT_ORDER_AFTER }
 
enum  TypeSequence {
  TYPE_SEQUENCE_META , TYPE_SEQUENCE_VARS , TYPE_SEQUENCE_DEFAULTS , TYPE_SEQUENCE_CONTEXTS ,
  TYPE_SEQUENCE_USERS , TYPE_SEQUENCE_FILES , TYPE_SEQUENCE_PACKAGES , TYPE_SEQUENCE_ENVIRONMENTS ,
  TYPE_SEQUENCE_METHODS , TYPE_SEQUENCE_PROCESSES , TYPE_SEQUENCE_SERVICES , TYPE_SEQUENCE_COMMANDS ,
  TYPE_SEQUENCE_STORAGE , TYPE_SEQUENCE_DATABASES , TYPE_SEQUENCE_REPORTS , TYPE_SEQUENCE_NONE
}
 
enum  RvalType {
  RVAL_TYPE_SCALAR = 's' , RVAL_TYPE_LIST = 'l' , RVAL_TYPE_FNCALL = 'f' , RVAL_TYPE_CONTAINER = 'c' ,
  RVAL_TYPE_NOPROMISEE = 'X'
}
 
enum  SyntaxStatus { SYNTAX_STATUS_NORMAL , SYNTAX_STATUS_DEPRECATED , SYNTAX_STATUS_REMOVED }
 
enum  FnCallCategory {
  FNCALL_CATEGORY_SYSTEM , FNCALL_CATEGORY_FILES , FNCALL_CATEGORY_IO , FNCALL_CATEGORY_COMM ,
  FNCALL_CATEGORY_DATA , FNCALL_CATEGORY_UTILS , FNCALL_CATEGORY_INTERNAL
}
 
enum  Interval { INTERVAL_HOURLY , INTERVAL_DAILY , INTERVAL_NONE }
 
enum  FileComparator {
  FILE_COMPARATOR_ATIME , FILE_COMPARATOR_MTIME , FILE_COMPARATOR_CTIME , FILE_COMPARATOR_CHECKSUM ,
  FILE_COMPARATOR_HASH , FILE_COMPARATOR_BINARY , FILE_COMPARATOR_EXISTS , FILE_COMPARATOR_NONE
}
 
enum  FileLinkType {
  FILE_LINK_TYPE_SYMLINK , FILE_LINK_TYPE_HARDLINK , FILE_LINK_TYPE_RELATIVE , FILE_LINK_TYPE_ABSOLUTE ,
  FILE_LINK_TYPE_NONE
}
 
enum  cfopaction { cfa_fix , cfa_warn }
 
enum  BackupOption {
  BACKUP_OPTION_BACKUP , BACKUP_OPTION_NO_BACKUP , BACKUP_OPTION_TIMESTAMP , BACKUP_OPTION_ROTATE ,
  BACKUP_OPTION_REPOSITORY_STORE
}
 
enum  cfnofile { cfa_force , cfa_delete , cfa_skip }
 
enum  cflinkchildren { cfa_override , cfa_onlynonexisting }
 
enum  FileChangeReport { FILE_CHANGE_REPORT_NONE , FILE_CHANGE_REPORT_CONTENT_CHANGE , FILE_CHANGE_REPORT_STATS_CHANGE , FILE_CHANGE_REPORT_ALL }
 
enum  signalnames {
  cfa_hup , cfa_int , cfa_trap , cfa_kill ,
  cfa_pipe , cfa_cont , cfa_abrt , cfa_stop ,
  cfa_quit , cfa_term , cfa_child , cfa_usr1 ,
  cfa_usr2 , cfa_bus , cfa_segv
}
 
enum  PackageAction {
  PACKAGE_ACTION_ADD , PACKAGE_ACTION_DELETE , PACKAGE_ACTION_REINSTALL , PACKAGE_ACTION_UPDATE ,
  PACKAGE_ACTION_ADDUPDATE , PACKAGE_ACTION_PATCH , PACKAGE_ACTION_VERIFY , PACKAGE_ACTION_NONE
}
 
enum  NewPackageAction { NEW_PACKAGE_ACTION_ABSENT , NEW_PACKAGE_ACTION_PRESENT , NEW_PACKAGE_ACTION_NONE }
 
enum  PackageVersionComparator {
  PACKAGE_VERSION_COMPARATOR_EQ , PACKAGE_VERSION_COMPARATOR_NEQ , PACKAGE_VERSION_COMPARATOR_GT , PACKAGE_VERSION_COMPARATOR_LT ,
  PACKAGE_VERSION_COMPARATOR_GE , PACKAGE_VERSION_COMPARATOR_LE , PACKAGE_VERSION_COMPARATOR_NONE
}
 
enum  PackageActionPolicy { PACKAGE_ACTION_POLICY_INDIVIDUAL , PACKAGE_ACTION_POLICY_BULK , PACKAGE_ACTION_POLICY_NONE }
 
enum  PromiseState { PROMISE_STATE_REPAIRED = 'r' , PROMISE_STATE_NOTKEPT = 'n' , PROMISE_STATE_KEPT = 'c' , PROMISE_STATE_ANY = 'x' }
 
enum  LastSeenDirection { LAST_SEEN_DIRECTION_INCOMING = '-' , LAST_SEEN_DIRECTION_OUTGOING = '+' }
 
enum  AclMethod { ACL_METHOD_APPEND , ACL_METHOD_OVERWRITE , ACL_METHOD_NONE }
 
enum  AclType { ACL_TYPE_GENERIC , ACL_TYPE_POSIX , ACL_TYPE_NTFS_ , ACL_TYPE_NONE }
 
enum  AclDefault {
  ACL_DEFAULT_NO_CHANGE , ACL_DEFAULT_SPECIFY , ACL_DEFAULT_ACCESS , ACL_DEFAULT_CLEAR ,
  ACL_DEFAULT_NONE
}
 
enum  AclInherit { ACL_INHERIT_FALSE , ACL_INHERIT_TRUE , ACL_INHERIT_NOCHANGE }
 
enum  inherit_t { INHERIT_ACCESS_ONLY , INHERIT_DEFAULT_ONLY , INHERIT_ACCESS_AND_DEFAULT }
 
enum  InsertMatchType { INSERT_MATCH_TYPE_IGNORE_LEADING , INSERT_MATCH_TYPE_IGNORE_TRAILING , INSERT_MATCH_TYPE_IGNORE_EMBEDDED , INSERT_MATCH_TYPE_EXACT }
 
enum  ContextScope { CONTEXT_SCOPE_NAMESPACE , CONTEXT_SCOPE_BUNDLE , CONTEXT_SCOPE_NONE }
 
enum  DatabaseType { DATABASE_TYPE_MYSQL , DATABASE_TYPE_POSTGRES , DATABASE_TYPE_NONE }
 
enum  ShellType { SHELL_TYPE_NONE , SHELL_TYPE_USE , SHELL_TYPE_POWERSHELL }
 
enum  MeasurePolicy {
  MEASURE_POLICY_AVERAGE , MEASURE_POLICY_SUM , MEASURE_POLICY_FIRST , MEASURE_POLICY_LAST ,
  MEASURE_POLICY_NONE
}
 
enum  UserState { USER_STATE_PRESENT , USER_STATE_ABSENT , USER_STATE_LOCKED , USER_STATE_NONE }
 
enum  PasswordFormat { PASSWORD_FORMAT_PLAINTEXT , PASSWORD_FORMAT_HASH , PASSWORD_FORMAT_NONE }
 
enum  EnvironmentState {
  ENVIRONMENT_STATE_CREATE , ENVIRONMENT_STATE_DELETE , ENVIRONMENT_STATE_RUNNING , ENVIRONMENT_STATE_SUSPENDED ,
  ENVIRONMENT_STATE_DOWN , ENVIRONMENT_STATE_NONE
}
 

Variables

const int CF3_MODULES
 
const ConstraintSyntax CF_COMMON_BODIES []
 
const ConstraintSyntax CF_VARBODY []
 
const PromiseTypeSyntax *const CF_ALL_PROMISE_TYPES []
 
const ConstraintSyntax CFG_CONTROLBODY []
 
const BodySyntax CONTROL_BODIES []
 
const ConstraintSyntax CFH_CONTROLBODY []
 
const PromiseTypeSyntax CF_COMMON_PROMISE_TYPES []
 
const ConstraintSyntax CF_CLASSBODY []
 
const ConstraintSyntax CFA_CONTROLBODY []
 
const ConstraintSyntax CFEX_CONTROLBODY []
 

Macro Definition Documentation

◆ CF_ABSPATHRANGE

#define CF_ABSPATHRANGE   "\"?(/.*)"

Definition at line 583 of file cf3.defs.h.

◆ CF_AGENTC

#define CF_AGENTC   "agent"

Definition at line 391 of file cf3.defs.h.

◆ CF_ALPHABETSIZE

#define CF_ALPHABETSIZE   256

Definition at line 59 of file cf3.defs.h.

◆ CF_ANYCLASS

#define CF_ANYCLASS   "any"

Definition at line 106 of file cf3.defs.h.

◆ CF_ANYSTRING

#define CF_ANYSTRING   ".*"

Definition at line 577 of file cf3.defs.h.

◆ CF_BOOL

#define CF_BOOL   "true,false,yes,no,on,off"

Definition at line 555 of file cf3.defs.h.

◆ CF_BSDFLAGRANGE

#define CF_BSDFLAGRANGE   "[+-]*[(arch|archived|nodump|opaque|sappnd|sappend|schg|schange|simmutable|sunlnk|sunlink|uappnd|uappend|uchg|uchange|uimmutable|uunlnk|uunlink)]+"

Definition at line 570 of file cf3.defs.h.

◆ CF_BUNDLE

#define CF_BUNDLE   (void*)1234 /* any non-null value, not used */

Definition at line 544 of file cf3.defs.h.

◆ CF_CHANGEDSTR1

#define CF_CHANGEDSTR1   "BAD: File changed " /* Split this so it cannot be recognized */

Definition at line 136 of file cf3.defs.h.

◆ CF_CHANGEDSTR2

#define CF_CHANGEDSTR2   "while copying"

Definition at line 137 of file cf3.defs.h.

◆ CF_CHARRANGE

#define CF_CHARRANGE   "^.$"

Definition at line 567 of file cf3.defs.h.

◆ CF_CLASSRANGE

#define CF_CLASSRANGE   "[a-zA-Z0-9_!&@@$|.()\\[\\]{}:]+"

Definition at line 571 of file cf3.defs.h.

◆ CF_COMMONC

#define CF_COMMONC   "common"

Definition at line 390 of file cf3.defs.h.

◆ CF_DB_REPAIR_TRIGGER

#define CF_DB_REPAIR_TRIGGER   "db_repair_required"

Definition at line 97 of file cf3.defs.h.

◆ CF_DONEPASSES

#define CF_DONEPASSES   4

Definition at line 344 of file cf3.defs.h.

◆ CF_EDITED

#define CF_EDITED   ".cfedited"

Definition at line 100 of file cf3.defs.h.

◆ CF_ENV_FILE

#define CF_ENV_FILE   "env_data"

Definition at line 95 of file cf3.defs.h.

◆ CF_EXECC

#define CF_EXECC   "executor"

Definition at line 394 of file cf3.defs.h.

◆ CF_FAILEDSTR

#define CF_FAILEDSTR   "BAD: Unspecified server refusal (see verbose server output)"

Definition at line 135 of file cf3.defs.h.

◆ CF_FILECHANGE

#define CF_FILECHANGE   "file_change.log"

Definition at line 91 of file cf3.defs.h.

◆ CF_FILECHANGE_NEW

#define CF_FILECHANGE_NEW   "file_changes.log"

Definition at line 92 of file cf3.defs.h.

◆ CF_FNCALLRANGE

#define CF_FNCALLRANGE   "[a-zA-Z0-9_(){}.$@]+"

Definition at line 575 of file cf3.defs.h.

◆ CF_GRAINS

#define CF_GRAINS   64

Definition at line 141 of file cf3.defs.h.

◆ CF_HIGHINIT

#define CF_HIGHINIT   999999L

Definition at line 551 of file cf3.defs.h.

◆ CF_HUBC

#define CF_HUBC   "hub"

Definition at line 397 of file cf3.defs.h.

◆ CF_IDRANGE

#define CF_IDRANGE   "[a-zA-Z0-9_$(){}\\[\\].:]+"

Definition at line 572 of file cf3.defs.h.

◆ CF_INFINITY

#define CF_INFINITY   ((int)999999999)

Definition at line 66 of file cf3.defs.h.

◆ CF_INTLISTRANGE

#define CF_INTLISTRANGE   "[-0-9_$(){}\\[\\].]+"

Definition at line 565 of file cf3.defs.h.

◆ CF_INTRANGE

#define CF_INTRANGE   "-99999999999,99999999999"

Definition at line 563 of file cf3.defs.h.

◆ CF_IPRANGE

#define CF_IPRANGE   "[a-zA-Z0-9_$(){}.:-]+"

Definition at line 574 of file cf3.defs.h.

◆ CF_KEYGEN

#define CF_KEYGEN   "keygenerator"

Definition at line 396 of file cf3.defs.h.

◆ CF_KEYSTRING

#define CF_KEYSTRING   "^(SHA|MD5)=[0123456789abcdef]*$"

Definition at line 579 of file cf3.defs.h.

◆ CF_LINKRANGE

#define CF_LINKRANGE   "symlink,hardlink,relative,absolute"

Definition at line 556 of file cf3.defs.h.

◆ CF_LOWINIT

#define CF_LOWINIT   -999999L

Definition at line 552 of file cf3.defs.h.

◆ CF_MACROALPHABET

#define CF_MACROALPHABET   61 /* a-z, A-Z plus a bit */

Definition at line 58 of file cf3.defs.h.

◆ CF_MANGLED_NS

#define CF_MANGLED_NS   '*'

Definition at line 114 of file cf3.defs.h.

◆ CF_MANGLED_SCOPE

#define CF_MANGLED_SCOPE   '#'

Definition at line 115 of file cf3.defs.h.

◆ CF_MAXFRAGMENT

#define CF_MAXFRAGMENT   19 /* abbreviate long promise names to 2*MAXFRAGMENT+3 */

Definition at line 54 of file cf3.defs.h.

◆ CF_MAXLINKSIZE

#define CF_MAXLINKSIZE   256

Definition at line 56 of file cf3.defs.h.

◆ CF_MEASURE_INTERVAL

#define CF_MEASURE_INTERVAL   (5.0*60.0)

Definition at line 143 of file cf3.defs.h.

◆ CF_MODERANGE

#define CF_MODERANGE   "[0-7augorwxst,+-=]+"

Definition at line 569 of file cf3.defs.h.

◆ CF_MONDAY_MORNING

#define CF_MONDAY_MORNING   345600

Definition at line 67 of file cf3.defs.h.

◆ CF_MONITORC

#define CF_MONITORC   "monitor"

Definition at line 393 of file cf3.defs.h.

◆ CF_NAKEDLRANGE

#define CF_NAKEDLRANGE   "@[(][a-zA-Z0-9_$(){}\\[\\].:]+[)]"

Definition at line 576 of file cf3.defs.h.

◆ CF_NETATTR

#define CF_NETATTR   7 /* icmp udp dns tcpsyn tcpfin tcpack */

Definition at line 142 of file cf3.defs.h.

◆ CF_NEW

#define CF_NEW   ".cfnew"

Definition at line 101 of file cf3.defs.h.

◆ CF_NOINT

#define CF_NOINT   -678L

Definition at line 339 of file cf3.defs.h.

◆ CF_NONCELEN

#define CF_NONCELEN   (CF_BUFSIZE/16)

Definition at line 55 of file cf3.defs.h.

◆ CF_NS

#define CF_NS   ':'

Definition at line 109 of file cf3.defs.h.

◆ CF_OBSERVABLES

#define CF_OBSERVABLES   100

Definition at line 146 of file cf3.defs.h.

◆ CF_PATHRANGE

#define CF_PATHRANGE   ".+"

Definition at line 590 of file cf3.defs.h.

◆ CF_PROCCOLS

#define CF_PROCCOLS   16

Definition at line 57 of file cf3.defs.h.

◆ CF_PROMISE_LOG

#define CF_PROMISE_LOG   "promise_summary.log"

Definition at line 93 of file cf3.defs.h.

◆ CF_REALRANGE

#define CF_REALRANGE   "-9.99999E100,9.99999E100"

Definition at line 566 of file cf3.defs.h.

◆ CF_RUNC

#define CF_RUNC   "runagent"

Definition at line 395 of file cf3.defs.h.

◆ CF_SAME_GROUP

#define CF_SAME_GROUP   ((gid_t)-1)

Definition at line 64 of file cf3.defs.h.

◆ CF_SAME_OWNER

#define CF_SAME_OWNER   ((uid_t)-1)

Definition at line 62 of file cf3.defs.h.

◆ CF_SAMEMODE

#define CF_SAMEMODE   7777

Definition at line 60 of file cf3.defs.h.

◆ CF_SAVED

#define CF_SAVED   ".cfsaved"

Definition at line 99 of file cf3.defs.h.

◆ CF_SERVERC

#define CF_SERVERC   "server"

Definition at line 392 of file cf3.defs.h.

◆ CF_SHIFT_INTERVAL

#define CF_SHIFT_INTERVAL   (6*3600)

Definition at line 144 of file cf3.defs.h.

◆ CF_SIGNALRANGE

#define CF_SIGNALRANGE   "hup,int,trap,kill,pipe,cont,abrt,stop,quit,term,child,usr1,usr2,bus,segv"

Definition at line 554 of file cf3.defs.h.

◆ CF_SMALL_OFFSET

#define CF_SMALL_OFFSET   2

Definition at line 107 of file cf3.defs.h.

◆ CF_START_DOMAIN

#define CF_START_DOMAIN   "undefined.domain"

Definition at line 139 of file cf3.defs.h.

◆ CF_TIMERANGE

#define CF_TIMERANGE   "0,2147483647" /* i.e. "0,0x7fffffff" */

Definition at line 557 of file cf3.defs.h.

◆ CF_UNDEFINED

#define CF_UNDEFINED   -1

Definition at line 338 of file cf3.defs.h.

◆ CF_UNDEFINED_ITEM

#define CF_UNDEFINED_ITEM   (void *)0x1234

Definition at line 340 of file cf3.defs.h.

◆ CF_UNKNOWN_GROUP

#define CF_UNKNOWN_GROUP   ((gid_t)-2)

Definition at line 65 of file cf3.defs.h.

◆ CF_UNKNOWN_OWNER

#define CF_UNKNOWN_OWNER   ((uid_t)-2)

Definition at line 63 of file cf3.defs.h.

◆ CF_USERRANGE

#define CF_USERRANGE   "[a-zA-Z0-9_$.-]+"

Definition at line 573 of file cf3.defs.h.

◆ CF_VALRANGE

#define CF_VALRANGE   "0,99999999999"

Definition at line 562 of file cf3.defs.h.

◆ CF_WORDSIZE

#define CF_WORDSIZE   8 /* Number of bytes in a word */

Definition at line 285 of file cf3.defs.h.

◆ CFD_FALSE

#define CFD_FALSE   "CFD_FALSE"

Definition at line 104 of file cf3.defs.h.

◆ CFD_FALSE_SIZE

#define CFD_FALSE_SIZE   sizeof(CFD_FALSE)

Definition at line 105 of file cf3.defs.h.

◆ CFD_TERMINATOR

#define CFD_TERMINATOR   "---cfXen/gine/cfXen/gine---"

Definition at line 102 of file cf3.defs.h.

◆ CFD_TRUE

#define CFD_TRUE   "CFD_TRUE"

Definition at line 103 of file cf3.defs.h.

◆ CFPULSETIME

#define CFPULSETIME   60

Definition at line 346 of file cf3.defs.h.

◆ DEFAULTMODE

#define DEFAULTMODE   ((mode_t)0755)

Definition at line 342 of file cf3.defs.h.

◆ EC_EVAL_ABORTED

#define EC_EVAL_ABORTED   6 /* like SIGABRT, but signal exit codes are 120+SIG */

Definition at line 149 of file cf3.defs.h.

◆ EXEC_SUFFIX

#define EXEC_SUFFIX   ""

Definition at line 282 of file cf3.defs.h.

◆ HOURS_PER_SHIFT

#define HOURS_PER_SHIFT   6

Definition at line 78 of file cf3.defs.h.

◆ MAX_DIGEST_BYTES

#define MAX_DIGEST_BYTES   (512 / 8) /* SHA-512 */

Definition at line 85 of file cf3.defs.h.

◆ MAX_DIGEST_HEX

#define MAX_DIGEST_HEX   (MAX_DIGEST_BYTES * 2)

Definition at line 86 of file cf3.defs.h.

◆ MAX_MONTH_NAME

#define MAX_MONTH_NAME   9

Definition at line 83 of file cf3.defs.h.

◆ MINUTES_PER_HOUR

#define MINUTES_PER_HOUR   60

Definition at line 69 of file cf3.defs.h.

◆ NULLFILE

#define NULLFILE   "/dev/null"

Definition at line 281 of file cf3.defs.h.

◆ OVECCOUNT

#define OVECCOUNT   30

Definition at line 888 of file cf3.defs.h.

◆ PACKAGES_CONTEXT

#define PACKAGES_CONTEXT   "cf_pack_context"

Definition at line 597 of file cf3.defs.h.

◆ PACKAGES_CONTEXT_ANYVER

#define PACKAGES_CONTEXT_ANYVER   "cf_pack_context_anyver"

Definition at line 598 of file cf3.defs.h.

◆ PROCESS_SELECT_INIT

#define PROCESS_SELECT_INIT
Value:
{ \
.owner = NULL, \
.min_pid = CF_NOINT, \
.max_pid = CF_NOINT, \
.min_ppid = CF_NOINT, \
.max_ppid = CF_NOINT, \
.min_pgid = CF_NOINT, \
.max_pgid = CF_NOINT, \
.min_rsize = CF_NOINT, \
.max_rsize = CF_NOINT, \
.min_vsize = CF_NOINT, \
.max_vsize = CF_NOINT, \
.min_ttime = CF_NOINT, \
.max_ttime = CF_NOINT, \
.min_stime = CF_NOINT, \
.max_stime = CF_NOINT, \
.min_pri = CF_NOINT, \
.max_pri = CF_NOINT, \
.min_thread = CF_NOINT, \
.max_thread = CF_NOINT, \
.status = NULL, \
.command = NULL, \
.tty = NULL, \
.process_result = NULL, \
}
#define CF_NOINT
Definition: cf3.defs.h:339
#define NULL
Definition: getopt1.c:56

Definition at line 1163 of file cf3.defs.h.

◆ SECONDS_PER_DAY

#define SECONDS_PER_DAY   (24 * SECONDS_PER_HOUR)

Definition at line 72 of file cf3.defs.h.

◆ SECONDS_PER_HOUR

#define SECONDS_PER_HOUR   (60 * SECONDS_PER_MINUTE)

Definition at line 71 of file cf3.defs.h.

◆ SECONDS_PER_MINUTE

#define SECONDS_PER_MINUTE   60

Definition at line 70 of file cf3.defs.h.

◆ SECONDS_PER_SHIFT

#define SECONDS_PER_SHIFT   (HOURS_PER_SHIFT * SECONDS_PER_HOUR)

Definition at line 79 of file cf3.defs.h.

◆ SECONDS_PER_WEEK

#define SECONDS_PER_WEEK   (7 * SECONDS_PER_DAY)

Definition at line 73 of file cf3.defs.h.

◆ SECONDS_PER_YEAR

#define SECONDS_PER_YEAR   (365 * SECONDS_PER_DAY)

Definition at line 74 of file cf3.defs.h.

◆ SHIFTS_PER_DAY

#define SHIFTS_PER_DAY   4

Definition at line 80 of file cf3.defs.h.

◆ SHIFTS_PER_WEEK

#define SHIFTS_PER_WEEK   (4*7)

Definition at line 81 of file cf3.defs.h.

◆ SOFTWARE_PACKAGES_CACHE

#define SOFTWARE_PACKAGES_CACHE   "software_packages.csv"

Definition at line 594 of file cf3.defs.h.

◆ SOFTWARE_PATCHES_CACHE

#define SOFTWARE_PATCHES_CACHE   "software_patches_avail.csv"

Definition at line 595 of file cf3.defs.h.

◆ ZeroAttributes

#define ZeroAttributes

Definition at line 1626 of file cf3.defs.h.

Typedef Documentation

◆ Body

typedef struct Body_ Body

Definition at line 352 of file cf3.defs.h.

◆ BodyCheckFn

typedef bool(* BodyCheckFn) (const Body *body, Seq *errors)

Definition at line 634 of file cf3.defs.h.

◆ BodySyntax

typedef struct BodySyntax_ BodySyntax

Definition at line 352 of file cf3.defs.h.

◆ Bundle

typedef struct Bundle_ Bundle

Definition at line 352 of file cf3.defs.h.

◆ Constraint

typedef struct Constraint_ Constraint

Definition at line 634 of file cf3.defs.h.

◆ ConstraintSyntax

Definition at line 352 of file cf3.defs.h.

◆ EvalContext

typedef struct EvalContext_ EvalContext

Definition at line 352 of file cf3.defs.h.

◆ FnCall

typedef struct FnCall_ FnCall

Definition at line 352 of file cf3.defs.h.

◆ GidList

typedef struct GidList_ GidList

Definition at line 1 of file cf3.defs.h.

◆ Item

typedef struct Item_ Item

Definition at line 1 of file cf3.defs.h.

◆ PackageItem

typedef struct PackageItem_ PackageItem

Definition at line 634 of file cf3.defs.h.

◆ PackageManager

Definition at line 634 of file cf3.defs.h.

◆ Policy

typedef struct Policy_ Policy

Definition at line 352 of file cf3.defs.h.

◆ Promise

typedef struct Promise_ Promise

Definition at line 352 of file cf3.defs.h.

◆ PromiseCheckFn

typedef bool(* PromiseCheckFn) (const Promise *pp, Seq *errors)

Definition at line 633 of file cf3.defs.h.

◆ PromiseType

typedef struct PromiseType_ PromiseType

Definition at line 352 of file cf3.defs.h.

◆ Rlist

typedef struct Rlist_ Rlist

Definition at line 352 of file cf3.defs.h.

◆ ServerConnectionState

Definition at line 1729 of file cf3.defs.h.

◆ UidList

typedef struct UidList_ UidList

Definition at line 1 of file cf3.defs.h.

Enumeration Type Documentation

◆ AclDefault

enum AclDefault
Enumerator
ACL_DEFAULT_NO_CHANGE 
ACL_DEFAULT_SPECIFY 
ACL_DEFAULT_ACCESS 
ACL_DEFAULT_CLEAR 
ACL_DEFAULT_NONE 

Definition at line 841 of file cf3.defs.h.

◆ AclInherit

enum AclInherit
Enumerator
ACL_INHERIT_FALSE 
ACL_INHERIT_TRUE 
ACL_INHERIT_NOCHANGE 

Definition at line 850 of file cf3.defs.h.

◆ AclMethod

enum AclMethod
Enumerator
ACL_METHOD_APPEND 
ACL_METHOD_OVERWRITE 
ACL_METHOD_NONE 

Definition at line 826 of file cf3.defs.h.

◆ AclType

enum AclType
Enumerator
ACL_TYPE_GENERIC 
ACL_TYPE_POSIX 
ACL_TYPE_NTFS_ 
ACL_TYPE_NONE 

Definition at line 833 of file cf3.defs.h.

◆ AgentControl

Enumerator
AGENT_CONTROL_ABORTCLASSES 
AGENT_CONTROL_ABORTBUNDLECLASSES 
AGENT_CONTROL_ADDCLASSES 
AGENT_CONTROL_AGENTACCESS 
AGENT_CONTROL_AGENTFACILITY 
AGENT_CONTROL_ALLCLASSESREPORT 
AGENT_CONTROL_ALWAYSVALIDATE 
AGENT_CONTROL_AUDITING 
AGENT_CONTROL_BINARYPADDINGCHAR 
AGENT_CONTROL_BINDTOINTERFACE 
AGENT_CONTROL_HASHUPDATES 
AGENT_CONTROL_CHILDLIBPATH 
AGENT_CONTROL_CHECKSUM_ALERT_TIME 
AGENT_CONTROL_DEFAULTCOPYTYPE 
AGENT_CONTROL_DRYRUN 
AGENT_CONTROL_EDITBINARYFILESIZE 
AGENT_CONTROL_EDITFILESIZE 
AGENT_CONTROL_ENVIRONMENT 
AGENT_CONTROL_EXCLAMATION 
AGENT_CONTROL_EXPIREAFTER 
AGENT_CONTROL_FSINGLECOPY 
AGENT_CONTROL_FAUTODEFINE 
AGENT_CONTROL_HOSTNAMEKEYS 
AGENT_CONTROL_IFELAPSED 
AGENT_CONTROL_INFORM 
AGENT_CONTROL_INTERMITTENCY 
AGENT_CONTROL_MAX_CHILDREN 
AGENT_CONTROL_MAXCONNECTIONS 
AGENT_CONTROL_MOUNTFILESYSTEMS 
AGENT_CONTROL_NONALPHANUMFILES 
AGENT_CONTROL_REPCHAR 
AGENT_CONTROL_REFRESH_PROCESSES 
AGENT_CONTROL_REPOSITORY 
AGENT_CONTROL_SECUREINPUT 
AGENT_CONTROL_SENSIBLECOUNT 
AGENT_CONTROL_SENSIBLESIZE 
AGENT_CONTROL_SKIPIDENTIFY 
AGENT_CONTROL_SUSPICIOUSNAMES 
AGENT_CONTROL_SYSLOG 
AGENT_CONTROL_TRACK_VALUE 
AGENT_CONTROL_TIMEZONE 
AGENT_CONTROL_TIMEOUT 
AGENT_CONTROL_VERBOSE 
AGENT_CONTROL_REPORTCLASSLOG 
AGENT_CONTROL_SELECT_END_MATCH_EOF 
AGENT_CONTROL_NONE 

Definition at line 443 of file cf3.defs.h.

◆ AgentType

enum AgentType
Enumerator
AGENT_TYPE_COMMON 
AGENT_TYPE_AGENT 
AGENT_TYPE_SERVER 
AGENT_TYPE_MONITOR 
AGENT_TYPE_EXECUTOR 
AGENT_TYPE_RUNAGENT 
AGENT_TYPE_KEYGEN 
AGENT_TYPE_HUB 
AGENT_TYPE_NOAGENT 

Definition at line 399 of file cf3.defs.h.

◆ BackupOption

Enumerator
BACKUP_OPTION_BACKUP 
BACKUP_OPTION_NO_BACKUP 
BACKUP_OPTION_TIMESTAMP 
BACKUP_OPTION_ROTATE 
BACKUP_OPTION_REPOSITORY_STORE 

Definition at line 722 of file cf3.defs.h.

◆ cflinkchildren

Enumerator
cfa_override 
cfa_onlynonexisting 

Definition at line 738 of file cf3.defs.h.

◆ cfnofile

enum cfnofile
Enumerator
cfa_force 
cfa_delete 
cfa_skip 

Definition at line 731 of file cf3.defs.h.

◆ cfopaction

enum cfopaction
Enumerator
cfa_fix 
cfa_warn 

Definition at line 716 of file cf3.defs.h.

◆ CfSize

enum CfSize
Enumerator
CF_SIZE_ABS 
CF_SIZE_PERCENT 

Definition at line 293 of file cf3.defs.h.

◆ CommonControl

Enumerator
COMMON_CONTROL_BUNDLESEQUENCE 
COMMON_CONTROL_GOALPATTERNS 
COMMON_CONTROL_IGNORE_MISSING_BUNDLES 
COMMON_CONTROL_IGNORE_MISSING_INPUTS 
COMMON_CONTROL_INPUTS 
COMMON_CONTROL_VERSION 
COMMON_CONTROL_LASTSEEN_EXPIRE_AFTER 
COMMON_CONTROL_OUTPUT_PREFIX 
COMMON_CONTROL_DOMAIN 
COMMON_CONTROL_REQUIRE_COMMENTS 
COMMON_CONTROL_LICENSES 
COMMON_CONTROL_SITE_CLASSES 
COMMON_CONTROL_SYSLOG_HOST 
COMMON_CONTROL_SYSLOG_PORT 
COMMON_CONTROL_FIPS_MODE 
COMMON_CONTROL_BWLIMIT 
COMMON_CONTROL_CACHE_SYSTEM_FUNCTIONS 
COMMON_CONTROL_PROTOCOL_VERSION 
COMMON_CONTROL_TLS_CIPHERS 
COMMON_CONTROL_TLS_MIN_VERSION 
COMMON_CONTROL_PACKAGE_INVENTORY 
COMMON_CONTROL_PACKAGE_MODULE 
COMMON_CONTROL_MAX 

Definition at line 414 of file cf3.defs.h.

◆ ContextScope

Enumerator
CONTEXT_SCOPE_NAMESPACE 
CONTEXT_SCOPE_BUNDLE 
CONTEXT_SCOPE_NONE 

Definition at line 944 of file cf3.defs.h.

◆ DatabaseType

Enumerator
DATABASE_TYPE_MYSQL 
DATABASE_TYPE_POSTGRES 
DATABASE_TYPE_NONE 

Definition at line 973 of file cf3.defs.h.

◆ DataType

enum DataType
Enumerator
CF_DATA_TYPE_STRING 
CF_DATA_TYPE_INT 
CF_DATA_TYPE_REAL 
CF_DATA_TYPE_STRING_LIST 
CF_DATA_TYPE_INT_LIST 
CF_DATA_TYPE_REAL_LIST 
CF_DATA_TYPE_OPTION 
CF_DATA_TYPE_OPTION_LIST 
CF_DATA_TYPE_BODY 
CF_DATA_TYPE_BUNDLE 
CF_DATA_TYPE_CONTEXT 
CF_DATA_TYPE_CONTEXT_LIST 
CF_DATA_TYPE_INT_RANGE 
CF_DATA_TYPE_REAL_RANGE 
CF_DATA_TYPE_COUNTER 
CF_DATA_TYPE_CONTAINER 
CF_DATA_TYPE_NONE 

Definition at line 367 of file cf3.defs.h.

◆ EditOrder

enum EditOrder
Enumerator
EDIT_ORDER_BEFORE 
EDIT_ORDER_AFTER 

Definition at line 512 of file cf3.defs.h.

◆ EnvironmentState

Enumerator
ENVIRONMENT_STATE_CREATE 
ENVIRONMENT_STATE_DELETE 
ENVIRONMENT_STATE_RUNNING 
ENVIRONMENT_STATE_SUSPENDED 
ENVIRONMENT_STATE_DOWN 
ENVIRONMENT_STATE_NONE 

Definition at line 1476 of file cf3.defs.h.

◆ ExecControl

Enumerator
EXEC_CONTROL_SPLAYTIME 
EXEC_CONTROL_MAILFROM 
EXEC_CONTROL_MAILTO 
EXEC_CONTROL_MAILSUBJECT 
EXEC_CONTROL_SMTPSERVER 
EXEC_CONTROL_MAILMAXLINES 
EXEC_CONTROL_MAILFILTER_INCLUDE 
EXEC_CONTROL_MAILFILTER_EXCLUDE 
EXEC_CONTROL_SCHEDULE 
EXEC_CONTROL_EXECUTORFACILITY 
EXEC_CONTROL_EXECCOMMAND 
EXEC_CONTROL_AGENT_EXPIREAFTER 
EXEC_CONTROL_NONE 

Definition at line 495 of file cf3.defs.h.

◆ FileChangeReport

Enumerator
FILE_CHANGE_REPORT_NONE 
FILE_CHANGE_REPORT_CONTENT_CHANGE 
FILE_CHANGE_REPORT_STATS_CHANGE 
FILE_CHANGE_REPORT_ALL 

Definition at line 744 of file cf3.defs.h.

◆ FileComparator

Enumerator
FILE_COMPARATOR_ATIME 
FILE_COMPARATOR_MTIME 
FILE_COMPARATOR_CTIME 
FILE_COMPARATOR_CHECKSUM 
FILE_COMPARATOR_HASH 
FILE_COMPARATOR_BINARY 
FILE_COMPARATOR_EXISTS 
FILE_COMPARATOR_NONE 

Definition at line 695 of file cf3.defs.h.

◆ FileLinkType

Enumerator
FILE_LINK_TYPE_SYMLINK 
FILE_LINK_TYPE_HARDLINK 
FILE_LINK_TYPE_RELATIVE 
FILE_LINK_TYPE_ABSOLUTE 
FILE_LINK_TYPE_NONE 

Definition at line 707 of file cf3.defs.h.

◆ FnCallCategory

Enumerator
FNCALL_CATEGORY_SYSTEM 
FNCALL_CATEGORY_FILES 
FNCALL_CATEGORY_IO 
FNCALL_CATEGORY_COMM 
FNCALL_CATEGORY_DATA 
FNCALL_CATEGORY_UTILS 
FNCALL_CATEGORY_INTERNAL 

Definition at line 643 of file cf3.defs.h.

◆ inherit_t

enum inherit_t
Enumerator
INHERIT_ACCESS_ONLY 
INHERIT_DEFAULT_ONLY 
INHERIT_ACCESS_AND_DEFAULT 

Definition at line 868 of file cf3.defs.h.

◆ InsertMatchType

Enumerator
INSERT_MATCH_TYPE_IGNORE_LEADING 
INSERT_MATCH_TYPE_IGNORE_TRAILING 
INSERT_MATCH_TYPE_IGNORE_EMBEDDED 
INSERT_MATCH_TYPE_EXACT 

Definition at line 876 of file cf3.defs.h.

◆ Interval

enum Interval
Enumerator
INTERVAL_HOURLY 
INTERVAL_DAILY 
INTERVAL_NONE 

Definition at line 688 of file cf3.defs.h.

◆ LastSeenDirection

Enumerator
LAST_SEEN_DIRECTION_INCOMING 
LAST_SEEN_DIRECTION_OUTGOING 

Definition at line 818 of file cf3.defs.h.

◆ MeasurePolicy

Enumerator
MEASURE_POLICY_AVERAGE 
MEASURE_POLICY_SUM 
MEASURE_POLICY_FIRST 
MEASURE_POLICY_LAST 
MEASURE_POLICY_NONE 

Definition at line 1394 of file cf3.defs.h.

◆ NewPackageAction

Enumerator
NEW_PACKAGE_ACTION_ABSENT 
NEW_PACKAGE_ACTION_PRESENT 
NEW_PACKAGE_ACTION_NONE 

Definition at line 783 of file cf3.defs.h.

◆ observables

Enumerator
ob_users 
ob_rootprocs 
ob_otherprocs 
ob_diskfree 
ob_loadavg 
ob_netbiosns_in 
ob_netbiosns_out 
ob_netbiosdgm_in 
ob_netbiosdgm_out 
ob_netbiosssn_in 
ob_netbiosssn_out 
ob_imap_in 
ob_imap_out 
ob_cfengine_in 
ob_cfengine_out 
ob_nfsd_in 
ob_nfsd_out 
ob_smtp_in 
ob_smtp_out 
ob_www_in 
ob_www_out 
ob_ftp_in 
ob_ftp_out 
ob_ssh_in 
ob_ssh_out 
ob_wwws_in 
ob_wwws_out 
ob_icmp_in 
ob_icmp_out 
ob_udp_in 
ob_udp_out 
ob_dns_in 
ob_dns_out 
ob_tcpsyn_in 
ob_tcpsyn_out 
ob_tcpack_in 
ob_tcpack_out 
ob_tcpfin_in 
ob_tcpfin_out 
ob_tcpmisc_in 
ob_tcpmisc_out 
ob_webaccess 
ob_weberrors 
ob_syslog 
ob_messages 
ob_temp0 
ob_temp1 
ob_temp2 
ob_temp3 
ob_cpuall 
ob_cpu0 
ob_cpu1 
ob_cpu2 
ob_cpu3 
ob_microsoft_ds_in 
ob_microsoft_ds_out 
ob_www_alt_in 
ob_www_alt_out 
ob_imaps_in 
ob_imaps_out 
ob_ldap_in 
ob_ldap_out 
ob_ldaps_in 
ob_ldaps_out 
ob_mongo_in 
ob_mongo_out 
ob_mysql_in 
ob_mysql_out 
ob_postgresql_in 
ob_postgresql_out 
ob_ipp_in 
ob_ipp_out 
ob_spare 

Definition at line 161 of file cf3.defs.h.

◆ PackageAction

Enumerator
PACKAGE_ACTION_ADD 
PACKAGE_ACTION_DELETE 
PACKAGE_ACTION_REINSTALL 
PACKAGE_ACTION_UPDATE 
PACKAGE_ACTION_ADDUPDATE 
PACKAGE_ACTION_PATCH 
PACKAGE_ACTION_VERIFY 
PACKAGE_ACTION_NONE 

Definition at line 771 of file cf3.defs.h.

◆ PackageActionPolicy

Enumerator
PACKAGE_ACTION_POLICY_INDIVIDUAL 
PACKAGE_ACTION_POLICY_BULK 
PACKAGE_ACTION_POLICY_NONE 

Definition at line 801 of file cf3.defs.h.

◆ PackageVersionComparator

Enumerator
PACKAGE_VERSION_COMPARATOR_EQ 
PACKAGE_VERSION_COMPARATOR_NEQ 
PACKAGE_VERSION_COMPARATOR_GT 
PACKAGE_VERSION_COMPARATOR_LT 
PACKAGE_VERSION_COMPARATOR_GE 
PACKAGE_VERSION_COMPARATOR_LE 
PACKAGE_VERSION_COMPARATOR_NONE 

Definition at line 790 of file cf3.defs.h.

◆ PasswordFormat

Enumerator
PASSWORD_FORMAT_PLAINTEXT 
PASSWORD_FORMAT_HASH 
PASSWORD_FORMAT_NONE 

Definition at line 1440 of file cf3.defs.h.

◆ PersistentClassPolicy

Enumerator
CONTEXT_STATE_POLICY_RESET 
CONTEXT_STATE_POLICY_PRESERVE 
CONTEXT_STATE_POLICY_RESET 
CONTEXT_STATE_POLICY_PRESERVE 

Definition at line 301 of file cf3.defs.h.

◆ PromiseResult

Enumerator
PROMISE_RESULT_SKIPPED 
PROMISE_RESULT_NOOP 
PROMISE_RESULT_CHANGE 
PROMISE_RESULT_WARN 
PROMISE_RESULT_FAIL 
PROMISE_RESULT_DENIED 
PROMISE_RESULT_TIMEOUT 
PROMISE_RESULT_INTERRUPTED 

Definition at line 121 of file cf3.defs.h.

◆ PromiseState

Enumerator
PROMISE_STATE_REPAIRED 
PROMISE_STATE_NOTKEPT 
PROMISE_STATE_KEPT 
PROMISE_STATE_ANY 

Definition at line 808 of file cf3.defs.h.

◆ RvalType

enum RvalType
Enumerator
RVAL_TYPE_SCALAR 
RVAL_TYPE_LIST 
RVAL_TYPE_FNCALL 
RVAL_TYPE_CONTAINER 
RVAL_TYPE_NOPROMISEE 

Definition at line 604 of file cf3.defs.h.

◆ ShellType

enum ShellType
Enumerator
SHELL_TYPE_NONE 
SHELL_TYPE_USE 
SHELL_TYPE_POWERSHELL 

Definition at line 1104 of file cf3.defs.h.

◆ signalnames

Enumerator
cfa_hup 
cfa_int 
cfa_trap 
cfa_kill 
cfa_pipe 
cfa_cont 
cfa_abrt 
cfa_stop 
cfa_quit 
cfa_term 
cfa_child 
cfa_usr1 
cfa_usr2 
cfa_bus 
cfa_segv 

Definition at line 752 of file cf3.defs.h.

◆ SyntaxStatus

Enumerator
SYNTAX_STATUS_NORMAL 
SYNTAX_STATUS_DEPRECATED 
SYNTAX_STATUS_REMOVED 

Definition at line 636 of file cf3.defs.h.

◆ TypeSequence

Enumerator
TYPE_SEQUENCE_META 
TYPE_SEQUENCE_VARS 
TYPE_SEQUENCE_DEFAULTS 
TYPE_SEQUENCE_CONTEXTS 
TYPE_SEQUENCE_USERS 
TYPE_SEQUENCE_FILES 
TYPE_SEQUENCE_PACKAGES 
TYPE_SEQUENCE_ENVIRONMENTS 
TYPE_SEQUENCE_METHODS 
TYPE_SEQUENCE_PROCESSES 
TYPE_SEQUENCE_SERVICES 
TYPE_SEQUENCE_COMMANDS 
TYPE_SEQUENCE_STORAGE 
TYPE_SEQUENCE_DATABASES 
TYPE_SEQUENCE_REPORTS 
TYPE_SEQUENCE_NONE 

Definition at line 520 of file cf3.defs.h.

◆ UserState

enum UserState
Enumerator
USER_STATE_PRESENT 
USER_STATE_ABSENT 
USER_STATE_LOCKED 
USER_STATE_NONE 

Definition at line 1432 of file cf3.defs.h.

Variable Documentation

◆ CF3_MODULES

◆ CF_ALL_PROMISE_TYPES

◆ CF_CLASSBODY

const ConstraintSyntax CF_CLASSBODY[]
extern

Definition at line 217 of file mod_common.c.

Referenced by ConstraintCheckType(), and GetContextConstraints().

◆ CF_COMMON_BODIES

const ConstraintSyntax CF_COMMON_BODIES[]
extern

Definition at line 487 of file mod_common.c.

Referenced by ConstraintCheckSyntax(), ConstraintCheckType(), and ConstraintGetSyntax().

◆ CF_COMMON_PROMISE_TYPES

const PromiseTypeSyntax CF_COMMON_PROMISE_TYPES[]
extern

Definition at line 505 of file mod_common.c.

Referenced by GetCommonConstraint().

◆ CF_VARBODY

const ConstraintSyntax CF_VARBODY[]
extern

Definition at line 126 of file mod_common.c.

◆ CFA_CONTROLBODY

const ConstraintSyntax CFA_CONTROLBODY[]
extern

Definition at line 272 of file mod_common.c.

Referenced by KeepControlPromises().

◆ CFEX_CONTROLBODY

const ConstraintSyntax CFEX_CONTROLBODY[]
extern

Definition at line 376 of file mod_common.c.

Referenced by ExecConfigNew(), and ExecdConfigNew().

◆ CFG_CONTROLBODY

const ConstraintSyntax CFG_CONTROLBODY[]
extern

◆ CFH_CONTROLBODY

const ConstraintSyntax CFH_CONTROLBODY[]
extern

Definition at line 394 of file mod_common.c.

◆ CONTROL_BODIES

const BodySyntax CONTROL_BODIES[]
extern

Definition at line 458 of file mod_common.c.

Referenced by BodySyntaxGet(), BodyTypesToJson(), CheckSelection(), and ResolveControlBody().