summaryrefslogtreecommitdiffhomepage
path: root/mullvad-exclude/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mullvad-exclude/src/main.rs')
-rw-r--r--mullvad-exclude/src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/mullvad-exclude/src/main.rs b/mullvad-exclude/src/main.rs
index e2d9703587..49556ab3d7 100644
--- a/mullvad-exclude/src/main.rs
+++ b/mullvad-exclude/src/main.rs
@@ -305,6 +305,9 @@ mod inner {
.context("Missing file descriptor in CMSG")?;
// SAFETY: The fd was just received via SCM_RIGHTS and is valid.
+ // The fd was produced by ScmpFilterContext::get_notify_fd.
+ // The fd does not need any cleanup other than close.
+ // Closing the fd is fine because ... TODO
let notify_fd = unsafe { OwnedFd::from_raw_fd(notify_fd) };
drop(notify_fd_rx);