Howdy, I would think this is something that has come up before (surely?)...I am running Net::Server to create a unix socket, and would like to chown the socket to change group ownership. My only opportunity to do so would be in post_bind_hook (just before dropping privs), however post_bind goes through and chowns everything when dropping permissions. That's sensible and all, but makes it impossible for me to control socket ownership.
Has anyone come up with a good way to do this? I'd rather not chmod to world-writeable, and I'd also rather not have a different version of Net::Server hanging around being different.
As of now, I'm just going to override post_bind and copy most of the code to my module. Ick.