coredump: cleanup coredump socket functions
authorChristian Brauner <brauner@kernel.org>
Thu, 5 Jun 2025 09:53:15 +0000 (11:53 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 12 Jun 2025 12:01:43 +0000 (14:01 +0200)
commite04f97c8be29523bae2576fceee84a4b030406fb
tree7b98a2e7d1a29d3c344ac01a7161cd2c5f9d91f4
parentc8e7ce2aa11c1beb06ba7ccceb31396fd8d7464f
coredump: cleanup coredump socket functions

We currently use multiple CONFIG_UNIX guards. This looks messy and makes
the code harder to follow and maintain. Use a helper function
coredump_sock_connect() that handles the connect portion. This allows us
to remove the CONFIG_UNIX guard in the main do_coredump() function.

Link: https://lore.kernel.org/20250605-schlamm-touren-720ba2b60a85@brauner
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/coredump.c