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) {
|
||||
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 + "'");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue