Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils: Don't assume cmsg data is aligned suitably for struct ucred
As documented in cmsg(3), the alignment of control messages is not guaranteed, so for portability to architectures with strong alignment requirements we should memcpy to and from a suitably aligned instance of the desired data structure on the stack. Helps: containers#637 Signed-off-by: Simon McVittie <[email protected]>
- Loading branch information