mirror of
https://github.com/google/santa.git
synced 2026-04-02 03:00:36 -04:00
67 lines
1.8 KiB
C
67 lines
1.8 KiB
C
/// Copyright 2014 Google Inc. All rights reserved.
|
|
///
|
|
/// Licensed under the Apache License, Version 2.0 (the "License");
|
|
/// you may not use this file except in compliance with the License.
|
|
/// You may obtain a copy of the License at
|
|
///
|
|
/// http://www.apache.org/licenses/LICENSE-2.0
|
|
///
|
|
/// Unless required by applicable law or agreed to in writing, software
|
|
/// distributed under the License is distributed on an "AS IS" BASIS,
|
|
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
/// See the License for the specific language governing permissions and
|
|
/// limitations under the License.
|
|
|
|
#ifndef SANTA__COMMON__COMMONENUMS_H
|
|
#define SANTA__COMMON__COMMONENUMS_H
|
|
|
|
// These enums are used in various places throughout the Santa client code.
|
|
// The integer values are also stored in the database and so shouldn't be changed.
|
|
|
|
// Each enum contains an _UNKNOWN and a _MAX value, which the valid values must be between so that
|
|
// the code can easily verify valid values.
|
|
|
|
typedef enum {
|
|
RULETYPE_UNKNOWN,
|
|
|
|
RULETYPE_BINARY = 1,
|
|
RULETYPE_CERT = 2,
|
|
|
|
RULETYPE_MAX
|
|
} santa_ruletype_t;
|
|
|
|
typedef enum {
|
|
RULESTATE_UNKNOWN,
|
|
|
|
RULESTATE_WHITELIST = 1,
|
|
RULESTATE_BLACKLIST = 2,
|
|
RULESTATE_SILENT_BLACKLIST = 3,
|
|
RULESTATE_REMOVE = 4,
|
|
|
|
RULESTATE_MAX
|
|
} santa_rulestate_t;
|
|
|
|
typedef enum {
|
|
CLIENTMODE_UNKNOWN,
|
|
|
|
CLIENTMODE_MONITOR = 1,
|
|
CLIENTMODE_LOCKDOWN = 2,
|
|
|
|
CLIENTMODE_MAX
|
|
} santa_clientmode_t;
|
|
|
|
typedef enum {
|
|
EVENTSTATE_UNKNOWN,
|
|
|
|
EVENTSTATE_ALLOW_UNKNOWN = 1,
|
|
EVENTSTATE_ALLOW_BINARY = 2,
|
|
EVENTSTATE_ALLOW_CERTIFICATE = 3,
|
|
EVENTSTATE_BLOCK_UNKNOWN = 4,
|
|
EVENTSTATE_BLOCK_BINARY = 5,
|
|
EVENTSTATE_BLOCK_CERTIFICATE = 6,
|
|
|
|
EVENTSTATE_MAX
|
|
} santa_eventstate_t;
|
|
|
|
#endif // SANTA__COMMON__COMMONENUMS_H
|