From 70b2225b3d09ef5fe85f0b42c461c79d0afde47b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 29 Aug 2021 01:59:34 +0200 Subject: Kernel: Store LocalSocket address as a KString internally Just because we deal with sockaddr_un at the userspace API layer doesn't mean we have to store an awkward C type internally. :^) --- Kernel/Net/LocalSocket.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Kernel/Net/LocalSocket.h') diff --git a/Kernel/Net/LocalSocket.h b/Kernel/Net/LocalSocket.h index ead6dd70e8..ce4abdba5a 100644 --- a/Kernel/Net/LocalSocket.h +++ b/Kernel/Net/LocalSocket.h @@ -69,6 +69,8 @@ private: evaluate_block_conditions(); } + KResult try_set_path(StringView); + // An open socket file on the filesystem. RefPtr m_file; @@ -92,7 +94,7 @@ private: bool m_bound { false }; bool m_accept_side_fd_open { false }; - sockaddr_un m_address { 0, { 0 } }; + OwnPtr m_path; NonnullOwnPtr m_for_client; NonnullOwnPtr m_for_server; -- cgit v1.2.3