diff options
author | Jorge Lucangeli Obes <jorgelo@google.com> | 2017-03-15 17:02:58 -0400 |
---|---|---|
committer | Jorge Lucangeli Obes <jorgelo@google.com> | 2017-03-20 13:41:24 -0400 |
commit | 45932a51abc18f3daddba7776fcfe7d3517da68c (patch) | |
tree | a0301307d81a286b5c4577e9ab9b3912c6266168 /parse_seccomp_policy.cc | |
parent | 8d35c2ec75c854b746489e583bef716eb278b422 (diff) | |
download | minijail-45932a51abc18f3daddba7776fcfe7d3517da68c.tar.gz |
syscall_filter: Refactor 'compile_file' out of 'compile_filter'.
The new in-process crash dumping on Android could use functionality to
include policy files in other policy files. The use case would be to
add a short section of syscalls required for crash dumping to processes
already using syscall filtering.
The first step to do this is to extract the functionality that parses
an individual file to a separate function, so that it can be called
multiple times.
Implementation of the include directive will be done in a follow-up CL.
Bug: 36007996
Test: New unit tests, but no change in functionality.
Change-Id: I4097513bf11c23af67b6741fceb5c7abe360396e
Diffstat (limited to 'parse_seccomp_policy.cc')
-rw-r--r-- | parse_seccomp_policy.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parse_seccomp_policy.cc b/parse_seccomp_policy.cc index c50b79e..a9daed0 100644 --- a/parse_seccomp_policy.cc +++ b/parse_seccomp_policy.cc @@ -32,7 +32,7 @@ int main(int argc, char **argv) { } struct sock_fprog fp; - int res = compile_filter(f, &fp, 0); + int res = compile_filter(f, &fp, 0, 0); if (res != 0) { die("compile_filter failed"); } |