summaryrefslogtreecommitdiffstats
path: root/sys/nfs4client
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2005-08-30 18:20:46 +0000
committerbrooks <brooks@FreeBSD.org>2005-08-30 18:20:46 +0000
commit40d25976f11fbf40e8b37a57763c0e2a223bc034 (patch)
tree7b4686fbd67a0783431c6a825e4abf47e83b6f34 /sys/nfs4client
parent42baca97e54dc0985cc6f2e8c148438572be0394 (diff)
downloadFreeBSD-src-40d25976f11fbf40e8b37a57763c0e2a223bc034.zip
FreeBSD-src-40d25976f11fbf40e8b37a57763c0e2a223bc034.tar.gz
Introduce a new helper function check_search() derived for res_hnok to
check the domain-name parameter according to the rules for "search" strings as documented in resolv.conf(5). Specifically, the string must be no more than 256 bytes long and contain no more than six valid domain names separated by white space. The previous unchecked values could result in a mangled resolv.conf file which could effectively deny access to local sites. This is not a security issue as rogue dhcp servers could already do this without sending invalid strings. Reviewed by: cperciva MFC After: 3 days
Diffstat (limited to 'sys/nfs4client')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud