Que yo sepa eso se puede hacer con iptables... en el make
menuconfig->networking options->netfilter configuration:
CONFIG_IP_NF_MATCH_OWNER:
Packet owner matching allows you to match locally-generated
packets
based on who created them: the user, group, process or session.