Skip to content
Snippets Groups Projects
Commit 33923454 authored by Simon McVittie's avatar Simon McVittie
Browse files

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: https://github.com/containers/bubblewrap/issues/637


Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 759517f8
No related branches found
No related tags found
1 merge request!729Optionally emit priority level markers on bubblewrap messages
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment