android_kernel_motorola_sm6375/net/dccp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kuniyuki Iwashima 3af0af2f98 dccp: Call security_inet_conn_request() after setting IPv4 addresses.
[ Upstream commit fa2df45af13091f76b89adb84a28f13818d5d631 ]

Initially, commit 4237c75c0a ("[MLSXFRM]: Auto-labeling of child
sockets") introduced security_inet_conn_request() in some functions
where reqsk is allocated.  The hook is added just after the allocation,
so reqsk's IPv4 remote address was not initialised then.

However, SELinux/Smack started to read it in netlbl_req_setattr()
after the cited commits.

This bug was partially fixed by commit 284904aa79 ("lsm: Relocate
the IPv4 security_inet_conn_request() hooks").

This patch fixes the last bug in DCCPv4.

Fixes: 389fb800ac ("netlabel: Label incoming TCP connections correctly in SELinux")
Fixes: 07feee8f81 ("netlabel: Cleanup the Smack/NetLabel code to fix incoming TCP connections")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 10:30:15 +01:00
..
ccids
ackvec.c
ackvec.h
ccid.c
ccid.h
dccp.h
diag.c
feat.c
feat.h
input.c
ipv4.c dccp: Call security_inet_conn_request() after setting IPv4 addresses. 2023-11-20 10:30:15 +01:00
ipv6.c dccp: fix dccp_v4_err()/dccp_v6_err() again 2023-10-10 21:46:37 +02:00
ipv6.h
Kconfig
Makefile
minisocks.c
options.c treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
output.c dccp: fix data-race around dp->dccps_mss_cache 2023-08-16 18:19:24 +02:00
proto.c dccp: annotate data-races in dccp_poll() 2023-08-30 16:27:23 +02:00
qpolicy.c
sysctl.c
timer.c
trace.h