diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-01-30 21:21:48 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-01-31 12:23:16 +0100 |
commit | 907046282c27ee2ced5e22abb80ed8df2e157baf (patch) | |
tree | d435daf155354ea7a9025d5e69279c9d2f13955f /NEWS | |
parent | 181eea677dd364d2b22dc691647792142b271074 (diff) | |
download | systemd-907046282c27ee2ced5e22abb80ed8df2e157baf.tar.gz |
bpf: fix restrict_fs on s390x
Linux kernel's bpf-next contains BPF LSM support for s390x. systemd's
test-bpf-lsm currently fails with this kernel.
This is an endianness issue: in the restrict_fs bpf program,
magic_number has type unsigned long (64 bits on s390x), but magic_map
keys are uint32_t (32 bits). Accessing magic_map using 64-bit keys may
work by accident on little-endian systems, but fails hard on big-endian
ones.
Fix by casting magic_number to uint32_t.
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions