0
Files
src/content/common/gpu_pre_sandbox_hook_linux.h
Ken Rockot 9c9d3dad3a on_device_model: Sandbox config for Linux/CrOS
Repurposes the existing GPU process sandbox config for use in the
on_device_model service process, with the exception that V4L2 library
access is disabled for the service process.

Bug: b:301661393
Change-Id: I4c00c2d4ee721f668ba17f4458189ca713b9a4c9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5063888
Reviewed-by: Matthew Denton <mpdenton@chromium.org>
Reviewed-by: Alex Gough <ajgo@chromium.org>
Commit-Queue: Ken Rockot <rockot@google.com>
Reviewed-by: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1230258}
2023-11-28 22:58:32 +00:00

21 lines
659 B
C++

// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_COMMON_GPU_PRE_SANDBOX_HOOK_LINUX_H_
#define CONTENT_COMMON_GPU_PRE_SANDBOX_HOOK_LINUX_H_
#include "base/component_export.h"
#include "sandbox/policy/linux/sandbox_linux.h"
namespace content {
// A pre-sandbox hook to use on Linux-based systems in sandboxed processes that
// require general GPU usage.
COMPONENT_EXPORT(GPU_PRE_SANDBOX_HOOK)
bool GpuPreSandboxHook(sandbox::policy::SandboxLinux::Options options);
} // namespace content
#endif // CONTENT_COMMON_GPU_PRE_SANDBOX_HOOK_LINUX_H_