From 0ac9254f9ae496eba2e95d0c222071fe0bd07a26 Mon Sep 17 00:00:00 2001 From: Sonny Rao Date: Tue, 8 May 2018 19:05:28 -0700 Subject: [PATCH] crosvm: aarch64: fix truncate on wayland policy Like block_device, also needs to use ftruncate64 instead of ftruncate. BUG=chromium:840048 TEST=manual test of graphics on kevin Change-Id: Ib24b12fd681c96ecc2fec796fe480e94a96a0626 Reviewed-on: https://chromium-review.googlesource.com/1050916 Commit-Ready: Sonny Rao Tested-by: Sonny Rao Reviewed-by: Dylan Reid Reviewed-by: Zach Reizner --- seccomp/aarch64/wl_device.policy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seccomp/aarch64/wl_device.policy b/seccomp/aarch64/wl_device.policy index 5b111d159e..e26dd0847c 100644 --- a/seccomp/aarch64/wl_device.policy +++ b/seccomp/aarch64/wl_device.policy @@ -38,7 +38,7 @@ sendmsg: 1 # Used for sharing memory with wayland. arg1 == MFD_CLOEXEC|MFD_ALLOW_SEALING memfd_create: arg1 == 3 # Used to set of size new memfd -ftruncate: 1 +ftruncate64: 1 # Used to determine shm size after recvmsg with fd _llseek: 1 # Allow PR_SET_NAME only.