From 8488a0bbbb5828eb0cea77f4081ceecec0119707 Mon Sep 17 00:00:00 2001 From: Matt Delco Date: Fri, 31 Jan 2020 17:29:45 -0800 Subject: seccomp: remove redundant unconditional arm/arm64 rules Minijail's policy compiler complains when there's multiple unconditional rules for a syscall. In most cases the rules are redundant to common_device.policy. BUG=None TEST=Ran compile_seccomp_policy.py until it stopped complaining. Change-Id: Ic43d1fd13f9c012641d71e526942229eb8b08ed4 Signed-off-by: Matt Delco Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2034024 Tested-by: kokoro Reviewed-by: Dylan Reid --- seccomp/arm/rng_device.policy | 3 +++ 1 file changed, 3 insertions(+) (limited to 'seccomp/arm/rng_device.policy') diff --git a/seccomp/arm/rng_device.policy b/seccomp/arm/rng_device.policy index 4f7aafd..0c7d258 100644 --- a/seccomp/arm/rng_device.policy +++ b/seccomp/arm/rng_device.policy @@ -3,3 +3,6 @@ # found in the LICENSE file. @include /usr/share/policy/crosvm/common_device.policy + +open: return ENOENT +openat: return ENOENT -- cgit 1.4.1