2008.11.16 - 05:06:02 PDT
I had a bit of a hitch working on my ulppd [sourceforge.net] project. Using Net::Server, it's not possible to chown the UNIX sockets it creates. You can put a chown into the post_bind_hook and it will be executed, but it's soon undone in post_bind (the next stage). This stage takes care of dropping permissions and chowning files to the user/group it's dropping permissions to.
With this patch, you can simply pass sock_owner and sock_group to the Net::Server, and the sockets will be chowned to that user/group respectively. If one or both options are omitted, the previous behavior is maintained.
Patch is available here [ulppd.svn.sourceforge.net]
With this patch, you can simply pass sock_owner and sock_group to the Net::Server, and the sockets will be chowned to that user/group respectively. If one or both options are omitted, the previous behavior is maintained.
Patch is available here [ulppd.svn.sourceforge.net]


