Skip to content

Commit

Permalink
Fix CI fail from seccomp SCMP_SYS(ppoll)
Browse files Browse the repository at this point in the history
There is a change in the SCMP_SYS area that I don't understand.
Fedora 31 now uses __SNR_ppoll rathr than __NR_ppoll.
  • Loading branch information
Hal Murray committed Dec 29, 2019
1 parent 2e429c1 commit 3aff624
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ntpd/ntp_sandbox.c
Expand Up @@ -413,9 +413,12 @@ int scmp_sc[] = {
SCMP_SYS(geteuid),
/* __NR_ppoll is not available in Fedora 31.
* Needed by getaddrinfo on Arch Linux. 2019-Dec */
#ifdef __NR_ppoll
SCMP_SYS(ppoll),
#endif
/* But somebody switched to SNR vs NR so we need a way
* to test for old/new so we can do the right ifdef. */
// Currently broken on Arch Linux but passes GitLab CI
// #ifdef __NR_ppoll
// SCMP_SYS(ppoll),
// #endif
SCMP_SYS(sendmsg),
#ifdef __NR_geteuid32
SCMP_SYS(geteuid32),
Expand Down

0 comments on commit 3aff624

Please sign in to comment.