libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
SECURITY_DESCRIPTOR.hh
Go to the documentation of this file.
1/*
2 * Copyright 2021 Assured Information Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
20
21#include <cstdint>
22
23namespace introvirt {
24namespace windows {
25namespace nt {
26
28
30 public:
31 virtual uint8_t Revision() const = 0;
32 virtual uint8_t Sbz1() const = 0;
34
35 virtual SID* Owner() = 0;
36 virtual SID* Group() = 0;
37 // TODO(pape): Getters for ACLs
38
39 virtual void Revision(uint8_t Revision) = 0;
40 virtual void Sbz1(uint8_t Sbz1) = 0;
42
43 virtual guest_ptr<void> ptr() const = 0;
44
45 virtual ~SECURITY_DESCRIPTOR() = default;
46};
47
48} /* namespace nt */
49} /* namespace windows */
50} /* namespace introvirt */
Definition guest_ptr.hh:88
Definition SECURITY_DESCRIPTOR.hh:29
virtual void Revision(uint8_t Revision)=0
virtual void Sbz1(uint8_t Sbz1)=0
virtual guest_ptr< void > ptr() const =0
virtual void Control(SECURITY_DESCRIPTOR_CONTROL Control)=0
virtual SECURITY_DESCRIPTOR_CONTROL Control() const =0
Definition SID.hh:35
Type-safe guest virtual address pointer and guest_ptr template.
uint16_t SECURITY_DESCRIPTOR_CONTROL
Definition SECURITY_DESCRIPTOR.hh:27
Core IntroVirt classes.
Definition Cr0.hh:20