Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open netlink socket with CLOEXEC #71

Closed
mbakhoff opened this issue Feb 8, 2020 · 3 comments
Closed

open netlink socket with CLOEXEC #71

mbakhoff opened this issue Feb 8, 2020 · 3 comments
Assignees
Milestone

Comments

@mbakhoff
Copy link

mbakhoff commented Feb 8, 2020

The netlink socket is opened without the CLOEXEC flag. Rust standard library sets CLOEXEC for all the stuff it opens. Maybe it would make sense to do it in neli as well to avoid accidental leaks when creating child processes?

Should be easy to change in src/socket.rs NlSocket::new but it does have some backward compatibility concerns..

See also: rust-lang/rust#12148

@jbaublitz
Copy link
Owner

This seems very reasonable for v0.5.0. Just a note that I'm catching up after a long vacation so it may take a bit.

@jbaublitz
Copy link
Owner

See the linked PR. Once CI passes, I'll merge and this can get closed out. Thanks for letting me know about this and for your patience!

@mbakhoff
Copy link
Author

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants