mirror of https://github.com/OpenIPC/firmware.git
23 lines
945 B
Diff
23 lines
945 B
Diff
diff -drupN a/include/net/route.h b/include/net/route.h
|
|
--- a/include/net/route.h 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/include/net/route.h 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -154,7 +154,7 @@ static inline struct rtable *ip_route_ou
|
|
flowi4_init_output(fl4, oif, sk ? sk->sk_mark : 0, tos,
|
|
RT_SCOPE_UNIVERSE, proto,
|
|
sk ? inet_sk_flowi_flags(sk) : 0,
|
|
- daddr, saddr, dport, sport);
|
|
+ daddr, saddr, dport, sport, sock_net_uid(net, sk));
|
|
if (sk)
|
|
security_sk_classify_flow(sk, flowi4_to_flowi(fl4));
|
|
return ip_route_output_flow(net, fl4, sk);
|
|
@@ -270,7 +270,8 @@ static inline void ip_route_connect_init
|
|
flow_flags |= FLOWI_FLAG_ANYSRC;
|
|
|
|
flowi4_init_output(fl4, oif, sk->sk_mark, tos, RT_SCOPE_UNIVERSE,
|
|
- protocol, flow_flags, dst, src, dport, sport);
|
|
+ protocol, flow_flags, dst, src, dport, sport,
|
|
+ sk->sk_uid);
|
|
}
|
|
|
|
static inline struct rtable *ip_route_connect(struct flowi4 *fl4,
|