Throw exception on unsupported OS, so we don't falsely report 'enabled'

This commit is contained in:
Robert Muir 2015-09-29 17:15:11 -04:00
parent 625d06cd76
commit ad6bc5b94c
1 changed files with 1 additions and 1 deletions

View File

@ -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 + "'");
}
}
}