Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 639364

Summary: add gettimeofday to seccomp for lldpd
Product: Gentoo Linux Reporter: Zhixu Liu <zhixu.liu>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: critical    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Zhixu Liu 2017-12-01 07:16:50 UTC
# cat /sys/devices/system/clocksource/clocksource0/current_clocksource
hpet

If system clcok source is hpet, then gettimeofday will do syscall gettimeofday, not for clocksource tsc. So we should add gettimeofday to seccomp too, otherwise:

2017-12-01T15:16:24 [INFO/event] libevent 2.1.8-stable initialized with epoll method
2017-12-01T15:16:24 [WARN/seccomp] invalid syscall attempted: gettimeofday(96)
2017-12-01T15:16:24 [CRIT/seccomp] invalid syscall not allowed: stop here

Reproducible: Always
Comment 1 Zhixu Liu 2017-12-01 07:23:20 UTC

*** This bug has been marked as a duplicate of bug 639366 ***