crosvm/seccomp/aarch64
Dennis Kempin a0dcf8ab13 Generate constants.json offline
The constants.json file is generated for compiling seccomp polices,
but is only ever added to in newer versions of linux.
Generating them in build.rs will cause the seccomp compiler to only
understand constants and syscalls available on the build machine
and fail if policy files try to allow syscalls not available.

Putting the constants in version control will allow us to compile
the policies regardless of how old the kernel headers on the build
machine are.

BUG=b:235858187
TEST=presubmit

Change-Id: I1cfbb38f4687eb68b141f62c1c5fe6104b3f6456
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3988899
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Auto-Submit: Dennis Kempin <denniskempin@google.com>
2022-11-02 00:13:08 +00:00
..
9p_device.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
balloon_device.policy
battery.policy
block_device.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
coiommu_device.policy
common_device.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
constants.json Generate constants.json offline 2022-11-02 00:13:08 +00:00
cras_audio_device.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
fs_device.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
gpu_common.policy Add clone3 to virtio-gpu device policy too 2022-10-28 16:26:34 +00:00
gpu_device.policy
gpu_render_server.policy
input_device.policy
net_device.policy
null_audio_device.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
pmem_device.policy
rng_device.policy
serial.policy
serial_device.policy
snd_cras_device.policy
snd_null_device.policy
tpm_device.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
vhost_net_device.policy
vhost_vsock_device.policy
video_device.policy
vios_audio_device.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
wl_device.policy
xhci_device.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00