Skip Menu |

This queue is for tickets about the IO-Socket-IP CPAN distribution.

Report information
The Basics
Id: 92502
Status: resolved
Priority: 0/
Queue: IO-Socket-IP

People
Owner: Nobody in particular
Requestors: craigberry [...] mac.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.28



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.

On Mon Jan 27 09:33:10 2014, craigberry@mac.com wrote: Show quoted text
> 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.
Ah yes. Looks good. Will be in next version -- Paul Evans
Released in 0.28 -- Paul Evans