summaryrefslogtreecommitdiffstats
path: root/security/sandbox/chromium/sandbox/win/src/security_capabilities.h
blob: 7a66e59743a5f6bd4c091d29d17764b41e5635ca (plain)
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
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SANDBOX_SRC_SECURITY_CAPABILITIES_H_
#define SANDBOX_SRC_SECURITY_CAPABILITIES_H_

#include <windows.h>

#include <vector>

#include "base/macros.h"
#include "sandbox/win/src/sid.h"

namespace sandbox {

class SecurityCapabilities final : public SECURITY_CAPABILITIES {
 public:
  explicit SecurityCapabilities(const Sid& package_sid);
  SecurityCapabilities(const Sid& package_sid,
                       const std::vector<Sid>& capabilities);
  ~SecurityCapabilities();

 private:
  std::vector<Sid> capabilities_;
  std::vector<SID_AND_ATTRIBUTES> capability_sids_;
  Sid package_sid_;

  DISALLOW_COPY_AND_ASSIGN(SecurityCapabilities);
};

}  // namespace sandbox

#endif  // SANDBOX_SRC_SECURITY_CAPABILITIES_H_