print_backend_sandbox_hook_linux.h 695 B

1234567891011121314151617181920
  1. // Copyright 2021 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef PRINTING_SANDBOX_PRINT_BACKEND_SANDBOX_HOOK_LINUX_H_
  5. #define PRINTING_SANDBOX_PRINT_BACKEND_SANDBOX_HOOK_LINUX_H_
  6. #include "base/component_export.h"
  7. #include "sandbox/policy/linux/sandbox_linux.h"
  8. namespace printing {
  9. // Setup allowed commands and filesystem permissions for print backend service
  10. // sandboxed process.
  11. COMPONENT_EXPORT(PRINTING)
  12. bool PrintBackendPreSandboxHook(sandbox::policy::SandboxLinux::Options options);
  13. } // namespace printing
  14. #endif // PRINTING_SANDBOX_PRINT_BACKEND_SANDBOX_HOOK_LINUX_H_