-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathOperationCheckCanonical.h
More file actions
35 lines (26 loc) · 853 Bytes
/
OperationCheckCanonical.h
File metadata and controls
35 lines (26 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#pragma once
#include "Operation.h"
class OperationCheckCanonical final : public Operation
{
// statics used by command registration utility
static std::wstring GetCommand() { return L"CheckCanonical"; }
static ClassFactory<OperationCheckCanonical> RegisteredFactory;
public:
// public enums
enum AceOrder : unsigned char
{
Unspecified = 0,
ExplicitDeny = 1,
ExplicitAllow = 2,
InheritedDeny = 3,
InheritedAllow = 4,
MaxAceOrder
};
// public functions
static AceOrder DetermineAceOrder(PACE_ACCESS_HEADER tAce);
static bool IsAclCanonical(const PACL & tCurrentAcl);
// overrides
bool ProcessAclAction(const WCHAR * sSdPart, ObjectEntry & tObjectEntry, PACL & tCurrentAcl, bool & bAclReplacement) override;
// constructors
OperationCheckCanonical(std::queue<std::wstring> & oArgList, const std::wstring & sCommand);
};