diff options
| author | saturneric <[email protected]> | 2025-06-16 21:46:49 +0000 |
|---|---|---|
| committer | saturneric <[email protected]> | 2025-06-16 21:46:49 +0000 |
| commit | 5a90d8addba52d4a64afcf7d8749cd2a56bf1619 (patch) | |
| tree | 46ff99517ae7fb3acf77d0d5e34ba784f9cd1246 /net/unix/af_unix.c | |
| parent | fix: force sync wireless drivers to v6.16-rc1 (diff) | |
| parent | Linux 6.16-rc2 (diff) | |
| download | kernel-5a90d8addba52d4a64afcf7d8749cd2a56bf1619.tar.gz kernel-5a90d8addba52d4a64afcf7d8749cd2a56bf1619.zip | |
Merge tag 'v6.16-rc2'
Linux 6.16-rc2
Diffstat (limited to 'net/unix/af_unix.c')
| -rw-r--r-- | net/unix/af_unix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 2e2e9997a68e..22e170fb5dda 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -1971,7 +1971,8 @@ static void unix_maybe_add_creds(struct sk_buff *skb, const struct sock *sk, if (UNIXCB(skb).pid) return; - if (unix_may_passcred(sk) || unix_may_passcred(other)) { + if (unix_may_passcred(sk) || unix_may_passcred(other) || + !other->sk_socket) { UNIXCB(skb).pid = get_pid(task_tgid(current)); current_uid_gid(&UNIXCB(skb).uid, &UNIXCB(skb).gid); } |
