3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools
Ambroz Bizjak 35e0eea053 ntpd: Allow additional syscalls in seccomp filter.
Fixes issue #21136.

The problem is that the seccomp system call filter configured by ntpd did not
include some system calls that were apparently needed. For example the
program hanged in getpid just after the filter was installed:

prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)  = 0
seccomp(SECCOMP_SET_MODE_STRICT, 1, NULL) = -1 EINVAL (Invalid argument)
seccomp(SECCOMP_SET_MODE_FILTER, 0, {len=41, filter=0x5620d7f0bd90}) = 0
getpid()                                = ?

I do not know exactly why this is a problem on NixOS only, perhaps we have getpid
caching disabled.

The fcntl and setsockopt system calls also had to be added.
2017-04-02 21:44:06 +02:00
..
admin google-cloud-sdk: 138.0.0 -> 148.0.1 2017-03-27 13:28:56 -04:00
archivers treewide: purge maintainers.urkud 2017-03-27 19:52:29 +02:00
audio mpdris2: install locale files to correct location 2017-03-07 12:33:36 +01:00
backup duplicity: 0.7.07.1 -> 0.7.12 2017-03-24 18:08:05 +08:00
bluetooth bluez-tools: 2015-09-10 -> 2016-12-12 2017-03-24 18:09:15 -05:00
bootloaders/refind refind: mark as broken 2017-03-14 15:36:35 +01:00
cd-dvd dvdisaster: fix $out variable expansion (makeFlags) 2017-03-07 12:11:27 +01:00
compression Merge pull request #24325 from ndowens/lzfse 2017-03-26 17:29:40 -05:00
filesystems treewide: purge maintainers.urkud 2017-03-27 19:52:29 +02:00
graphics panomatic: remove 2017-03-30 16:23:33 +02:00
inputmethods ibus-table: 1.9.14 -> 1.9.16 2017-03-31 13:15:31 +01:00
misc xfstests: Fixes 2017-04-01 19:50:09 +03:00
networking ntpd: Allow additional syscalls in seccomp filter. 2017-04-02 21:44:06 +02:00
package-management Regenerate NPM expressions with node2nix 1.2.0 2017-03-31 20:51:14 +02:00
security gnupg*: Improve the meta set 2017-03-28 22:19:12 +02:00
system treewide: purge maintainers.urkud 2017-03-27 19:52:29 +02:00
text treewide: purge maintainers.urkud 2017-03-27 19:52:29 +02:00
typesetting sile: on Darwin, use AppKit for font selection 2017-03-26 08:37:05 +00:00
video atomicparsley: fix build with llvm 4 2017-03-21 23:35:54 +01:00
virtualization nixos-container: check for correct path for chattr 2017-03-22 15:15:42 +01:00
X11 xkbset: init at 0.5 2017-04-02 02:17:30 +03:00