mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-04-12 18:29:59 +00:00
Throw exception on unsupported OS, so we don't falsely report 'enabled'
This commit is contained in:
parent
625d06cd76
commit
ad6bc5b94c
@ -379,7 +379,7 @@ final class Seccomp {
|
|||||||
} else if (Constants.MAC_OS_X) {
|
} else if (Constants.MAC_OS_X) {
|
||||||
macImpl(tmpFile);
|
macImpl(tmpFile);
|
||||||
} else {
|
} else {
|
||||||
logger.debug("syscall filtering not supported for OS {}", Constants.OS_NAME);
|
throw new UnsupportedOperationException("syscall filtering not supported for OS: '" + Constants.OS_NAME + "'");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user