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

Bug 639366

Summary: net-misc/lldpd - add gettimeofday to seccomp
Product: Gentoo Linux Reporter: Zhixu Liu <zhixu.liu>
Component: Current packagesAssignee: Patrick McLean <chutzpah>
Status: RESOLVED FIXED    
Severity: normal CC: bertrand, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=727742
Whiteboard:
Package list:
Runtime testing required: ---

Description Zhixu Liu 2017-12-01 07:19:32 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
*** Bug 639364 has been marked as a duplicate of this bug. ***