blob: eda7af00ae0fe197f407d65ea7d26c13417d71df [file] [log] [blame]
#!/bin/bash
# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Used to generate the compiled seccomp policy from the text-based policy.
# Requires a text-based policy to be present in the same dir as the script.
echo "compiling global seccomp policy"
compile_seccomp_policy --arch-json "$1" \
--denylist global_seccomp.policy global_seccomp_policy
${LD} -r -b binary global_seccomp_policy -o global_seccomp_policy.o