summary refs log tree commit diff stats
path: root/scripts/tracetool/backend/stderr.py
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2014-01-30 21:28:17 +0100
committerEduardo Otubo <otubo@linux.vnet.ibm.com>2014-04-25 14:51:59 -0300
commit84397618529f920bea45d0bab22ec097766244fc (patch)
tree79e7b2930005a3b4a64b461003f9b1115c995acc /scripts/tracetool/backend/stderr.py
parent750036a848ea913ba6343718ffa70da98f7eef6b (diff)
downloadfocaccia-qemu-84397618529f920bea45d0bab22ec097766244fc.tar.gz
focaccia-qemu-84397618529f920bea45d0bab22ec097766244fc.zip
seccomp: add timerfd_create and timerfd_settime to the whitelist
libusb calls timerfd_create() and timerfd_settime() when it's built with
timerfd support.

Command to reproduce:

       -device usb-host,hostbus=1,hostaddr=3,id=hostdev0

Log messages:

audit(1390730418.924:135): auid=4294967295 uid=121 gid=103 ses=4294967295
                           pid=5232 comm="qemu-system-x86" sig=31 syscall=283
                           compat=0 ip=0x7f2b0f4e96a7 code=0x0
audit(1390733100.580:142): auid=4294967295 uid=121 gid=103 ses=4294967295
                           pid=16909 comm="qemu-system-x86" sig=31 syscall=286
                           compat=0 ip=0x7f03513a06da code=0x0

Reading a few hundred MB from a USB drive on x86_64 shows this syscall distribution.
Therefore the timerfd_settime priority is set to 242.

    calls  syscall
 --------- ----------------
   5303600 write
   2240554 read
   2167030 ppoll
   2134828 ioctl
    704023 timerfd_settime
    689105 poll
     83122 futex
       803 writev
       476 rt_sigprocmask
       287 recvmsg
       178 brk

Signed-off-by: Felix Geyer <debfx@fobos.de>
Signed-off-by: Eduardo Otubo <otubo@linux.vnet.ibm.com>
Diffstat (limited to 'scripts/tracetool/backend/stderr.py')
0 files changed, 0 insertions, 0 deletions