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

2021-03-30 Thread Sasha Levin
On Mon, Mar 29, 2021 at 06:24:43PM +, David Brazdil wrote: [Backport of commit 1f935e8e72ec28dddb2dc0650b3b6626a293d94b to all stable branches from 4.4 to 5.4, inclusive] For AF_VSOCK, accept() currently returns sockets that are unlabelled. Other socket families derive the child's SID from t

[PATCH pre-5.10] selinux: vsock: Set SID for socket returned by accept()

2021-03-29 Thread David Brazdil
[Backport of commit 1f935e8e72ec28dddb2dc0650b3b6626a293d94b to all stable branches from 4.4 to 5.4, inclusive] 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