From ad6bc5b94cca7f95ccda4ce617b09b930125717c Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Tue, 29 Sep 2015 17:15:11 -0400 Subject: [PATCH] Throw exception on unsupported OS, so we don't falsely report 'enabled' --- core/src/main/java/org/elasticsearch/bootstrap/Seccomp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/elasticsearch/bootstrap/Seccomp.java b/core/src/main/java/org/elasticsearch/bootstrap/Seccomp.java index 148de82d988..1088225f684 100644 --- a/core/src/main/java/org/elasticsearch/bootstrap/Seccomp.java +++ b/core/src/main/java/org/elasticsearch/bootstrap/Seccomp.java @@ -379,7 +379,7 @@ final class Seccomp { } else if (Constants.MAC_OS_X) { macImpl(tmpFile); } else { - logger.debug("syscall filtering not supported for OS {}", Constants.OS_NAME); + throw new UnsupportedOperationException("syscall filtering not supported for OS: '" + Constants.OS_NAME + "'"); } } }