Skip to content

Commit ad6bc5b

Browse files
committed
Throw exception on unsupported OS, so we don't falsely report 'enabled'
1 parent 625d06c commit ad6bc5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/elasticsearch/bootstrap/Seccomp.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ static void init(Path tmpFile) throws Throwable {
379379
} else if (Constants.MAC_OS_X) {
380380
macImpl(tmpFile);
381381
} else {
382-
logger.debug("syscall filtering not supported for OS {}", Constants.OS_NAME);
382+
throw new UnsupportedOperationException("syscall filtering not supported for OS: '" + Constants.OS_NAME + "'");
383383
}
384384
}
385385
}

0 commit comments

Comments
 (0)