audio: Add lseek in null_audio_device policy

This commit will fix crosvm crashes when playing audio
with ac97 device and null backend

BUG=b:233960497
TEST=run aplay -Dhw:0,0 -d 3 -f dat /dev/urandom inside a VM

Change-Id: Ic24853f308d92b2e5831d112f432f72f6fedd73c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3670934
Commit-Queue: Norman Bintang <normanbt@chromium.org>
Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Norman Bintang 2022-05-26 10:41:57 +00:00 committed by Chromeos LUCI
parent aa2e59d82f
commit 6eda1c4eb4
3 changed files with 3 additions and 0 deletions

View file

@ -4,6 +4,7 @@
@include /usr/share/policy/crosvm/common_device.policy
lseek: 1
madvise: 1
prlimit64: 1
setrlimit: 1

View file

@ -4,6 +4,7 @@
@include /usr/share/policy/crosvm/common_device.policy
_llseek: 1
madvise: 1
open: return ENOENT
openat: return ENOENT

View file

@ -4,6 +4,7 @@
@include /usr/share/policy/crosvm/common_device.policy
lseek: 1
madvise: 1
open: return ENOENT
openat: return ENOENT