Bug 1572137
Summary: | lsmcli fs-export --*-host does not validate the value | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Jakub Krysl <jkrysl> |
Component: | libstoragemgmt | Assignee: | Tony Asleson <tasleson> |
Status: | CLOSED ERRATA | QA Contact: | Jakub Krysl <jkrysl> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.5 | CC: | tasleson |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-06 12:40:24 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jakub Krysl
2018-04-26 09:15:47 UTC
Just to clarify, 'wrong' is a valid hostname. Users should be free to specify IP address or hostname. I believe it would be a mistake to actually do a dns query or try to ping an IP address to validate that it's indeed correct. I've submitted a patch upstream which ensures that the specified string is a valid IP or hostname, but I'm reluctant to do anything more. (In reply to Tony Asleson from comment #2) > Just to clarify, 'wrong' is a valid hostname. Users should be free to > specify IP address or hostname. I believe it would be a mistake to actually > do a dns query or try to ping an IP address to validate that it's indeed > correct. I've submitted a patch upstream which ensures that the specified > string is a valid IP or hostname, but I'm reluctant to do anything more. I agree, hostname might not be reachable at the moment. Checking for hostname validity is fine, thanks. libstoragemgmt-1.7.2-1.el7.x86_64 # lsmcli -u "sim://" fs-export --fs='FS_ID_00001' --ro-host='*invalid*' usage: lsmcli fs-export [-h] [-v] [-u <URI>] [-P] [-H] [-t <SEP>] [-e] [-f] [-w CHILD_WAIT] [--header] [-b] [-s] --fs <FS_ID> [--exportpath <EXPORT_PATH>] [--anonuid <ANON_UID>] [--anongid <ANON_GID>] [--auth-type <AUTH_TYPE>] [--root-host <ROOT_HOST>] [--ro-host <RO_HOST>] [--rw-host <RW_HOST>] lsmcli fs-export: error: argument --ro-host: *invalid* is invalid IP or hostname Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:2064 |