crosvm/seccomp/x86_64
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 Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
battery.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
block.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
block_device.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
block_device_vhost_user.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
block_device_vvu.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
coiommu_device.policy health-check: enforce blank line after copyright 2022-09-13 22:24:35 +00:00
common_device.frequency Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
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 Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
gpu_render_server.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
input_device.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
iommu_device.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
net_device.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
null_audio_device.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
pmem_device.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
rng_device.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
serial.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
serial_device.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
serial_device_vhost_user.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
serial_device_vvu.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
snd_cras_device.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
snd_null_device.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
tpm_device.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
vfio_device.policy vfio_pci: add support for runtime power management 2022-10-10 10:56:05 +00:00
vhost_net_device.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
vhost_user.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
vhost_vsock_device.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
video_device.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
vios_audio_device.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00
vtpm_proxy_device.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
vvu.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
vvu_proxy_device.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
wl_device.policy Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
xhci_device.policy seccomp: add lseek to all devices 2022-10-18 06:39:41 +00:00