Re: [PATCH v2] selinux: vsock: Set SID for socket returned by accept()

2021-03-19 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Fri, 19 Mar 2021 13:05:41 + you wrote: > For AF_VSOCK, accept() currently returns sockets that are unlabelled. > Other socket families derive the child's SID from the SID of the parent > and the SID of the incoming packet

Re: [PATCH v2] selinux: vsock: Set SID for socket returned by accept()

2021-03-19 Thread David Brazdil
On Fri, Mar 19, 2021 at 01:05:41PM +, David Brazdil wrote: > For AF_VSOCK, accept() currently returns sockets that are unlabelled. > Other socket families derive the child's SID from the SID of the parent > and the SID of the incoming packet. This is typically done as the > connected socket is

[PATCH v2] selinux: vsock: Set SID for socket returned by accept()

2021-03-19 Thread David Brazdil
For AF_VSOCK, accept() currently returns sockets that are unlabelled. Other socket families derive the child's SID from the SID of the parent and the SID of the incoming packet. This is typically done as the connected socket is placed in the queue that accept() removes from. Reuse the existing 'se