Disable Seccomp when running old Linux kernel

for those of us running i.e. a 2.x kernel with 3.x headers, for some reason
it sucks but I'll live with it

On 07/10/2014 10:55 PM, Charles Lehner wrote:
>> @@ -54,6 +54,8 @@ var detect = module.exports.detect = function (async, file, builder)
>>          console.log("SECCOMP is only available on linux");
>>      } else if (process.env['Seccomp_NO']) {
>>          console.log("SECCOMP disabled");
>> +    } else if (builder.config.systemRelease < "3.5") {
>> +        console.log("SECCOMP filtering is only available in Linux 3.5+");
> 
> Well, `3.13 < 3.5` == `'3.13.0-29-generic' < '3.5'` == `true`, which isn't what we want. If you don't mind another dependency, I would add [semver](https://github.com/isaacs/node-semver) so we can get `semver.lt('3.13.0-29-generic', '3.5.0')` == false
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/cjdelisle/cjdns/pull/587/files#r14792653
>