Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 564566 - net-misc/lldpd-0.7.11-r3 with USE=seccomp - invalid syscall attempted: fcntl(72)
Summary: net-misc/lldpd-0.7.11-r3 with USE=seccomp - invalid syscall attempted: fcntl(72)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-31 14:02 UTC by Bertrand Jacquin
Modified: 2016-06-10 17:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
lldpd-0.9-seccomp-fcntl.patch (lldpd-0.9-seccomp-missing-syscalls.patch,788 bytes, patch)
2016-06-09 21:11 UTC, Patrick McLean
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2015-10-31 14:02:24 UTC
When USE=seccomp is enabled, net-misc/lldpd-0.7.11-r3 fail to start:

# /usr/sbin/lldpd -d -x -cc -S foo.bar -I eth0 -m 192.0.2.42                                                                 
2015-10-31T06:47:22 [WARN/control] unable to connect to socket /run/lldpd.socket: Connection refused
2015-10-31T06:47:22 [WARN/lldpctl] unknown command from argument 1: `#`
2015-10-31T06:47:22 [WARN/lldpctl] unknown command from argument 1: `#`
2015-10-31T06:47:22 [WARN/seccomp] invalid syscall attempted: fcntl(72)


Reproducible: Always
Comment 1 Patrick McLean gentoo-dev 2015-11-11 22:05:16 UTC
Could you please test with lldpd-0.7.13?
If that works we will stabilize it, and remove the broken version.
Comment 2 Bertrand Jacquin 2015-11-22 15:14:02 UTC
(In reply to Patrick McLean from comment #1)
> Could you please test with lldpd-0.7.13?
> If that works we will stabilize it, and remove the broken version.

Same happens :/
Comment 3 Patrick McLean gentoo-dev 2016-06-08 23:40:04 UTC
Does this happen with lldpd-0.9.3?

I have not been able to reproduce these issues locally
Comment 4 Oleg Gawriloff 2016-06-09 10:47:39 UTC
(In reply to Patrick McLean from comment #3)
> Does this happen with lldpd-0.9.3?
> 
> I have not been able to reproduce these issues locally
Same:
Jun  9 13:47:01 vulture2 lldpd[16347]: protocol LLDP disabled
Jun  9 13:47:01 vulture2 lldpd[16347]: protocol CDPv1 enabled
Jun  9 13:47:01 vulture2 lldpd[16347]: protocol CDPv2 enabled and forced
Jun  9 13:47:01 vulture2 lldpd[16347]: libevent 2.0.22-stable initialized with epoll method
Jun  9 13:47:01 vulture2 lldpd[16347]: enable SNMP subagent
Jun  9 13:47:01 vulture2 lldpd[16347]: Created directory: /var
Jun  9 13:47:01 vulture2 lldpd[16347]: Created directory: /var/lib
Jun  9 13:47:01 vulture2 lldpd[16347]: Created directory: /var/lib/net-snmp
Jun  9 13:47:01 vulture2 lldpd[16347]: Created directory: /var/lib/net-snmp/mib_indexes
Jun  9 13:47:01 vulture2 lldpd[16346]: invalid syscall attempted: fcntl(72)
Jun  9 13:47:01 vulture2 lldpd[16346]: invalid syscall not allowed: stop here
Jun  9 13:47:02 vulture2 /etc/init.d/lldpd[16344]: start-stop-daemon: /usr/sbin lldpd died
Comment 5 Patrick McLean gentoo-dev 2016-06-09 21:11:09 UTC
Created attachment 437028 [details, diff]
lldpd-0.9-seccomp-fcntl.patch

Does this patch fix the problem (you should be able to drop it in /etc/portage/patches/net-misc/lldpd and rebuild the package)
Comment 6 Oleg Gawriloff 2016-06-10 15:49:37 UTC
(In reply to Patrick McLean from comment #5)

Tested. Working ok:
Jun 10 18:48:39 vulture2 lldpd[29381]: protocol LLDP disabled
Jun 10 18:48:39 vulture2 lldpd[29381]: protocol CDPv1 enabled
Jun 10 18:48:39 vulture2 lldpd[29381]: protocol CDPv2 enabled and forced
Jun 10 18:48:39 vulture2 lldpd[29381]: libevent 2.0.22-stable initialized with epoll method
Jun 10 18:48:39 vulture2 lldpd[29381]: enable SNMP subagent
Jun 10 18:48:39 vulture2 lldpd[29381]: NET-SNMP version 5.7.3 AgentX subagent connected
Jun 10 18:48:39 vulture2 lldpd[29381]: error while receiving frame on enp4s0f1: Network is down
Jun 10 18:48:39 vulture2 lldpd[29381]: error while receiving frame on enp4s0f2: Network is down
Jun 10 18:48:39 vulture2 lldpd[29381]: error while receiving frame on enp4s0f3: Network is down