crosvm/seccomp/arm
paulhsia 7cf768d02d ac97: Fix device real time priority issue
- Add allow sched_setscheduler call in seccomp policy
- Change the real time priority constant AUDIO_THREAD_RTPRIO to 10 to match
all other clients' priority.

Run the following commands to test
1. ulimit -r 10
2. crosvm run -r ./vm_rootfs.img -c 1 -m 1024 -s /run --cid 5 --host_ip \
   100.115.92.25 --netmask 255.255.255.252 --cras-audio \
   --params="snd_intel8x0.inside_vm=1 snd_intel8x0.ac97_clock=48000" \
   --mac d2:47:f7:c5:9e:53 ./vm_kernel
3. aplay -Dhw:0,0 -f dat /dev/zero
4. ps -AT -o comm,rtprio | grep crosvm
should see a thread running with rtprio=10

BUG=chromium:983533
BUG=b:138262556
TEST=Test with eve (x86_64) and bob (arm)

Change-Id: Idc3711d03d716741f7cefd9a89b14ae4c20c2033
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1729089
Tested-by: kokoro <noreply+kokoro@google.com>
Tested-by: Chih-Yang Hsia <paulhsia@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Chih-Yang Hsia <paulhsia@chromium.org>
2019-08-01 09:25:59 +00:00
..
9p_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
balloon_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
block_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
common_device.policy seccomp: add sendto, writev, and readv to common seccomp policies 2019-07-27 03:50:22 +00:00
cras_audio_device.policy ac97: Fix device real time priority issue 2019-08-01 09:25:59 +00:00
input_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
net_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
null_audio_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
pmem_device.policy devices: Add separate seccomp policy for pmem device 2019-06-21 21:47:58 +00:00
rng_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
tpm_device.policy seccomp: return error from socket for TPM device 2019-07-09 23:34:57 +00:00
vhost_net_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
vhost_vsock_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
wl_device.policy seccomp: refactor policy into common_device.policy 2019-02-07 03:02:12 -08:00
xhci.policy usb: Arm seccomp policy needs _llseek, not lseek 2019-06-27 17:07:01 +00:00