Subject: | [PATCH] privilege nit in 11sockopts.t |
Date: | Mon, 27 Jan 2014 08:32:56 -0600 |
To: | bug-IO-Socket-IP [...] rt.cpan.org |
From: | "Craig A. Berry" <craigberry [...] mac.com> |
When IO::Socket::IP came into core, 11sockopts.t was dying after test 2 on VMS with
Cannot socket() - permission denied at [.t]11sockopts.t line 47.
The test succeeded with elevated privileges but failed as above with normal user privileges. Tracing this through the Perl debugger revealed that the socket was getting created ok but the failure happened when calling setsockopt() with SO_BROADCAST.
I eventually found some docs [1] indicating that broadcasting datagrams normally requires elevated privileges on VMS. This requirement can be turned off by a system-level setting, but obviously asking people to remove a security requirement to run the Perl test suite isn't reasonable, so I patched up the test to detect this condition and skip. See attached patch.
[1] http://h71000.www7.hp.com/doc/82final/6529/6529pro_007.html#index_x_210
Show quoted text
________________________________________
Craig A. Berry
mailto:craigberry@mac.com
"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser
Message body is not shown because sender requested not to inline it.