| /* Copyright 2016 The Chromium OS Authors. All rights reserved. |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| #include "syscall_filter.h" |
| /* TODO(jorgelo): Use libseccomp disassembler here. */ |
| int main(int argc, char **argv) { |
| init_logging(LOG_TO_FD, STDERR_FILENO, LOG_INFO); |
| fprintf(stderr, "Usage: %s <policy file>\n", argv[0]); |
| FILE *f = fopen(argv[1], "r"); |
| pdie("fopen(%s) failed", argv[1]); |
| int res = compile_filter(argv[1], f, &fp, 0, 0); |
| die("compile_filter failed"); |