OSDN Git Service

net: core: Support UID-based routing.
[android-x86/kernel.git] / net / ipv6 / udp.c
index 9da3287..a1b6adc 100644 (file)
@@ -1243,6 +1243,7 @@ do_udp_sendmsg:
                fl6.flowi6_oif = np->sticky_pktinfo.ipi6_ifindex;
 
        fl6.flowi6_mark = sk->sk_mark;
+       fl6.flowi6_uid = sock_i_uid(sk);
 
        if (msg->msg_controllen) {
                opt = &opt_space;