summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-07 16:35:54 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-11-07 16:38:57 +0100
commitcc65b1015d1bb8ef4028ff72d642bc264e4d0225 (patch)
treefe2d2f9b67889738cf18ba7b8820ee791b67a9a0
parent000962c3fb53dcbe07e365875623d2d19fb4cdf6 (diff)
downloadnixlib-cc65b1015d1bb8ef4028ff72d642bc264e4d0225.tar
nixlib-cc65b1015d1bb8ef4028ff72d642bc264e4d0225.tar.gz
nixlib-cc65b1015d1bb8ef4028ff72d642bc264e4d0225.tar.bz2
nixlib-cc65b1015d1bb8ef4028ff72d642bc264e4d0225.tar.lz
nixlib-cc65b1015d1bb8ef4028ff72d642bc264e4d0225.tar.xz
nixlib-cc65b1015d1bb8ef4028ff72d642bc264e4d0225.tar.zst
nixlib-cc65b1015d1bb8ef4028ff72d642bc264e4d0225.zip
vsftpd: Disable seccomp filtering on 64-bit
It worked on Linux 3.4 but fails with "500 OOPS: priv_sock_get_cmd"
since we updated the default kernel to 3.10.

http://hydra.nixos.org/build/6715359

https://bugzilla.redhat.com/show_bug.cgi?id=845980
https://bugzilla.novell.com/show_bug.cgi?id=786024
-rw-r--r--nixos/modules/services/networking/vsftpd.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/vsftpd.nix b/nixos/modules/services/networking/vsftpd.nix
index cfd8530717e3..1c77cc6df4ea 100644
--- a/nixos/modules/services/networking/vsftpd.nix
+++ b/nixos/modules/services/networking/vsftpd.nix
@@ -88,6 +88,9 @@ let
       nopriv_user=vsftpd
       secure_chroot_dir=/var/empty
       syslog_enable=YES
+      ${optionalString (pkgs.stdenv.system == "x86_64-linux") ''
+        seccomp_sandbox=NO
+      ''}
     '';
 
 in