Skip to content

open netlink socket with CLOEXEC #71

@mbakhoff

Description

@mbakhoff

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

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions