[zeromq-dev] Java/Windows issues

Steven McCoy steven.mccoy at miru.hk
Wed Aug 5 10:21:14 CEST 2009


2009/8/5 Martin Sustrik <sustrik at fastmq.com>
>
> Consequently, when combining Windows and Linux, you have to use raw PGM.
> The sender (Linux) has to run as root, while receivers (Windows) need no
> special privileges.

Or you could use the Linux capability system but it's only appeared in
the latest distributions, for example:

$ sudo execcap 'cap_net_raw=ep' ./pgm_remote_thr

Will run "pgm_remote_thr" with only the CAP_NET_RAW capability.  The
longer version with changing effective user and group:

$ sudo execcap 'cap_net_raw=ep'  /sbin/sucap nobody nogroup ./pgm_remote_thr

On Debian these utilities are in the "libcap-bin" package.

Apparently in a future kernel version the following would work:

$ chattr +CAP_NET_RAW pgm_remote_thr


-- 
Steve-o



More information about the zeromq-dev mailing list