[go: up one dir, main page]

Skip to content

Commit

Permalink
jail: seccomp: scsi: Add newfstatat(2) and ioctl(BLKDISCARD) to polic…
Browse files Browse the repository at this point in the history
…y files

FIO tests fail after https://crrev.com/c/5019243 since the newfstatat
and ioctl(BLKDISCARD) syscalls are not listed in the seccomp file. This
commit adds those syscalls in each seccomp file.

BUG=b:300042376
TEST=tools/presubmit
TEST=vm.Fio.scsi_* works

Change-Id: I609e9599acda66a49a80606f94ae726de4eab9e8
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5052360
Reviewed-by: Takaya Saeki <takayas@chromium.org>
Commit-Queue: Joe Hattori <hattorij@google.com>
  • Loading branch information
joehattori authored and crosvm LUCI committed Nov 27, 2023
1 parent 79b33c6 commit 4cbf564
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jail/seccomp/aarch64/scsi_device.policy
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

fallocate: 1
fdatasync: 1
# 0x1277 == BLKDISCARD.
ioctl: arg1 == 0x1277
newfstatat: 1
openat: 1
prctl: arg0 == PR_SET_NAME
preadv: 1
Expand Down
3 changes: 3 additions & 0 deletions jail/seccomp/arm/scsi_device.policy
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

fallocate: 1
fdatasync: 1
# 0x1277 == BLKDISCARD.
ioctl: arg1 == 0x1277
openat: 1
prctl: arg0 == PR_SET_NAME
preadv: 1
pwritev: 1
statx: 1
3 changes: 3 additions & 0 deletions jail/seccomp/x86_64/scsi.policy
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

fallocate: 1
fdatasync: 1
# 0x1277 == BLKDISCARD.
ioctl: arg1 == 0x1277
newfstatat: 1
openat: 1
prctl: arg0 == PR_SET_NAME
preadv: 1
Expand Down

0 comments on commit 4cbf564

Please sign in to comment.