diff options
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index da5601d13a7f..d9c7869312c1 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -660,8 +660,8 @@ static void netlink_queue_mmaped_skb(struct sock *sk, struct sk_buff *skb) | |||
660 | hdr->nm_len = skb->len; | 660 | hdr->nm_len = skb->len; |
661 | hdr->nm_group = NETLINK_CB(skb).dst_group; | 661 | hdr->nm_group = NETLINK_CB(skb).dst_group; |
662 | hdr->nm_pid = NETLINK_CB(skb).creds.pid; | 662 | hdr->nm_pid = NETLINK_CB(skb).creds.pid; |
663 | hdr->nm_uid = NETLINK_CB(skb).creds.uid; | 663 | hdr->nm_uid = from_kuid(sk_user_ns(sk), NETLINK_CB(skb).creds.uid); |
664 | hdr->nm_gid = NETLINK_CB(skb).creds.gid; | 664 | hdr->nm_gid = from_kgid(sk_user_ns(sk), NETLINK_CB(skb).creds.gid); |
665 | netlink_frame_flush_dcache(hdr); | 665 | netlink_frame_flush_dcache(hdr); |
666 | netlink_set_status(hdr, NL_MMAP_STATUS_VALID); | 666 | netlink_set_status(hdr, NL_MMAP_STATUS_VALID); |
667 | 667 | ||
@@ -690,8 +690,8 @@ static void netlink_ring_set_copied(struct sock *sk, struct sk_buff *skb) | |||
690 | hdr->nm_len = skb->len; | 690 | hdr->nm_len = skb->len; |
691 | hdr->nm_group = NETLINK_CB(skb).dst_group; | 691 | hdr->nm_group = NETLINK_CB(skb).dst_group; |
692 | hdr->nm_pid = NETLINK_CB(skb).creds.pid; | 692 | hdr->nm_pid = NETLINK_CB(skb).creds.pid; |
693 | hdr->nm_uid = NETLINK_CB(skb).creds.uid; | 693 | hdr->nm_uid = from_kuid(sk_user_ns(sk), NETLINK_CB(skb).creds.uid); |
694 | hdr->nm_gid = NETLINK_CB(skb).creds.gid; | 694 | hdr->nm_gid = from_kgid(sk_user_ns(sk), NETLINK_CB(skb).creds.gid); |
695 | netlink_set_status(hdr, NL_MMAP_STATUS_COPY); | 695 | netlink_set_status(hdr, NL_MMAP_STATUS_COPY); |
696 | } | 696 | } |
697 | 697 | ||