/src/node/src/permission/child_process_permission.cc
Line | Count | Source |
1 | | #include "child_process_permission.h" |
2 | | |
3 | | #include <string> |
4 | | #include <vector> |
5 | | |
6 | | namespace node { |
7 | | |
8 | | namespace permission { |
9 | | |
10 | | // Currently, ChildProcess manage a single state |
11 | | // Once denied, it's always denied |
12 | | void ChildProcessPermission::Apply(Environment* env, |
13 | | const std::vector<std::string>& allow, |
14 | 0 | PermissionScope scope) { |
15 | 0 | deny_all_ = true; |
16 | 0 | } |
17 | | |
18 | | bool ChildProcessPermission::is_granted(Environment* env, |
19 | | PermissionScope perm, |
20 | 0 | const std::string_view& param) const { |
21 | 0 | return deny_all_ == false; |
22 | 0 | } |
23 | | |
24 | | } // namespace permission |
25 | | } // namespace node |