summaryrefslogtreecommitdiff
path: root/Documentation/devicetree
diff options
context:
space:
mode:
authorKonstantin Andreev <andreev@swemel.ru>2024-06-17 01:44:30 +0300
committerCasey Schaufler <casey@schaufler-ca.com>2024-06-19 09:25:00 -0700
commite86cac0acdb1a74f608bacefe702f2034133a047 (patch)
tree5d1ad417450597992ad7627507b8716dc24e126f /Documentation/devicetree
parent2fe209d0ad2e2729f7e22b9b31a86cc3ff0db550 (diff)
smack: unix sockets: fix accept()ed socket label
When a process accept()s connection from a unix socket (either stream or seqpacket) it gets the socket with the label of the connecting process. For example, if a connecting process has a label 'foo', the accept()ed socket will also have 'in' and 'out' labels 'foo', regardless of the label of the listener process. This is because kernel creates unix child sockets in the context of the connecting process. I do not see any obvious way for the listener to abuse alien labels coming with the new socket, but, to be on the safe side, it's better fix new socket labels. Signed-off-by: Konstantin Andreev <andreev@swemel.ru> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Diffstat (limited to 'Documentation/devicetree')
0 files changed, 0 insertions, 0 deletions