Prashant Malani | b3241da | 2020-12-09 10:06:18 -0800 | [diff] [blame] | 1 | // Copyright 2020 The Chromium OS 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 | |
| 5 | #ifndef DEBUGD_SRC_ECTOOL_UTIL_H_ |
| 6 | #define DEBUGD_SRC_ECTOOL_UTIL_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | #include <vector> |
| 10 | |
| 11 | #include <base/files/file_path.h> |
| 12 | #include <brillo/errors/error.h> |
| 13 | |
| 14 | namespace debugd { |
| 15 | |
| 16 | bool RunEctoolWithArgs(brillo::ErrorPtr* error, |
| 17 | const base::FilePath& seccomp_policy_path, |
| 18 | const std::vector<std::string> ectool_args, |
| 19 | const std::string& user, |
| 20 | std::string* output); |
| 21 | |
| 22 | } // namespace debugd |
| 23 | |
| 24 | #endif // DEBUGD_SRC_ECTOOL_UTIL_H_ |