diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-08-06 15:12:00 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-08-06 15:12:00 +0000 |
commit | 70cce1a384ec21c6ba0ef38d64d2f67333e4b7d7 (patch) | |
tree | c970e39408b21bc1f6994dddf2415267d1b41ad7 /CHANGELOG.md | |
parent | 237ec7bc13d045f21ae653c74bfd41fe411860f9 (diff) | |
parent | 9f0af4479742386c4ce30d05ad20e2450bbd0d54 (diff) | |
download | nix-70cce1a384ec21c6ba0ef38d64d2f67333e4b7d7.zip |
Merge #923
923: Fix control message *decoding* and add support for `ScmCredentials` r=asomers a=jonas-schievink
While https://github.com/nix-rust/nix/pull/918 fixed the *encoding*, the *decoding* done by the `CmsgIterator` still remained broken when multiple messages are received. However, since nix didn't support any control message that could reliably be sent twice in one `sendmsg` call, this couldn't be tested properly.
This PR addresses this by adding `SCM_CREDENTIALS` support and testing all of this by passing both an `SCM_CREDENTIALS` and a `SCM_RIGHTS` message at the same time.
I've also verified that the resulting encoding is the same as for roughly equivalent C code.
Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e55b7ae..a5bf6fff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). ([#922](https://github.com/nix-rust/nix/pull/922)) - Support the `SO_PEERCRED` socket option and the `UnixCredentials` type on all Linux and Android targets. ([#921](https://github.com/nix-rust/nix/pull/921)) +- Added support for `SCM_CREDENTIALS`, allowing to send process credentials over Unix sockets. + ([#923](https://github.com/nix-rust/nix/pull/923)) ### Changed |