summaryrefslogtreecommitdiffstats
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
authorPietro Borrello <borrello@diag.uniroma1.it>2023-02-04 17:39:20 +0000
committerDavid S. Miller <davem@davemloft.net>2023-02-06 10:16:55 +0000
commit584f3742890e966d2f0a1f3c418c9ead70b2d99e (patch)
treeda80e16652afbdd1695b2c69e594205e7eaa0689 /drivers/net/tun.c
parentb601135e8d704f3218efaf07cdb2ebf310aedc2a (diff)
downloadlinux-584f3742890e966d2f0a1f3c418c9ead70b2d99e.tar.gz
linux-584f3742890e966d2f0a1f3c418c9ead70b2d99e.tar.bz2
linux-584f3742890e966d2f0a1f3c418c9ead70b2d99e.zip
net: add sock_init_data_uid()
Add sock_init_data_uid() to explicitly initialize the socket uid. To initialise the socket uid, sock_init_data() assumes a the struct socket* sock is always embedded in a struct socket_alloc, used to access the corresponding inode uid. This may not be true. Examples are sockets created in tun_chr_open() and tap_open(). Fixes: 86741ec25462 ("net: core: Add a UID field to struct sock.") Signed-off-by: Pietro Borrello <borrello@diag.uniroma1.it> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
0 files changed, 0 insertions, 0 deletions