summaryrefslogtreecommitdiff
path: root/www/chromium/files/sandbox_freebsd.h
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2022-02-20 12:35:15 +0100
committerRene Ladan <rene@FreeBSD.org>2022-02-20 12:42:02 +0100
commita23dfd214ae04e8b4d116ca6411570b684eb5ed6 (patch)
treea42703b6563673398eee97ae6ad4d01eafd77738 /www/chromium/files/sandbox_freebsd.h
parentgraphics/libglvnd: reduce dependency on gcc for everyone on powerpc64* by usi... (diff)
www/chromium: update to 98.0.4758.102
- The port now uses the combined patch set for OpenBSD and FreeBSD maintained by Robert Nagy. - Fix build on i386 again. Obtained from: Robert Nagy <robert@openbsd.org> Security: https://vuxml.freebsd.org/freebsd/e12432af-8e73-11ec-8bc4-3065ec8fd3ec.html Security: https://vuxml.freebsd.org/freebsd/e852f43c-846e-11ec-b043-3065ec8fd3ec.html
Diffstat (limited to 'www/chromium/files/sandbox_freebsd.h')
-rw-r--r--www/chromium/files/sandbox_freebsd.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/www/chromium/files/sandbox_freebsd.h b/www/chromium/files/sandbox_freebsd.h
deleted file mode 100644
index 5b2bacfa04a8..000000000000
--- a/www/chromium/files/sandbox_freebsd.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2012 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_POLICY_FREEBSD_SANDBOX_FREEBSD_H_
-#define SANDBOX_POLICY_FREEBSD_SANDBOX_FREEBSD_H_
-
-#include "base/macros.h"
-#include "base/memory/singleton.h"
-#include "sandbox/policy/export.h"
-#include "sandbox/policy/sandbox_type.h"
-
-namespace sandbox {
-namespace policy {
-
-// A singleton class to represent and change our sandboxing state for the
-// capsicum sandbox on FreeBSD.
-class SANDBOX_POLICY_EXPORT SandboxFreeBSD {
-public:
- // Get our singleton instance.
- static SandboxFreeBSD* GetInstance();
-
- // Get a description for a sandbox type.
- static std::string GetSandboxTypeInEnglish(sandbox::mojom::Sandbox sandbox_type);
-
- // Initializing the Capsicum sandbox.
- bool InitializeSandbox(sandbox::mojom::Sandbox sandbox_type);
-
- // Testing whether the sandbox is enabled.
- bool IsSandboxed();
-
-private:
- friend struct base::DefaultSingletonTraits<SandboxFreeBSD>;
-
- SandboxFreeBSD();
- ~SandboxFreeBSD();
-
- bool initialize_sandbox_ran_; // InitializeSandbox() was called.
-
- DISALLOW_COPY_AND_ASSIGN(SandboxFreeBSD);
-};
-
-} // namespace policy
-} // namespace sandbox
-
-#endif // SANDBOX_POLICY_FREBSD_SANDBOX_FREEBSD_H_