Colin Walters 1858d3d300 core: Always sort incoming xattrs
When recomputing selinux attrs during commit, we weren't sorting,
which could cause various issues like fsck failures.

This is a big hammer; change things so we always canonicalize
(i.e. sort) the incoming xattrs when creating a file header
and directory metadata.

I think almost all places in the code were already keeping
things sorted, but it's better to ensure correctness first.
If we ever have some performance issue (I'm doubtful) we
could add something like `_ostree_file_header_known_canonicalized`
or so.

Closes: https://github.com/ostreedev/ostree/issues/3343

Signed-off-by: Colin Walters <walters@verbum.org>
2024-12-02 10:40:17 -05:00
..
2024-11-04 14:28:13 -05:00
2023-05-02 08:42:19 -04:00
2023-05-02 08:42:19 -04:00
2020-05-27 21:59:23 +00:00
2024-02-16 13:34:34 +01:00
2023-05-02 08:42:19 -04:00
2023-05-02 08:42:19 -04:00
2023-05-02 08:42:19 -04:00
2023-05-02 08:42:19 -04:00
2023-05-02 08:42:19 -04:00
2023-05-02 08:42:19 -04:00
2023-05-02 08:42:19 -04:00
2023-05-02 08:42:19 -04:00
2023-05-02 08:42:19 -04:00
2024-07-18 17:55:21 -04:00
2023-05-02 08:42:19 -04:00
2023-05-02 08:42:19 -04:00