diff options
| author | Brahmajit Das <[email protected]> | 2025-06-30 20:32:48 +0000 |
|---|---|---|
| committer | Mickaël Salaün <[email protected]> | 2025-07-01 19:42:39 +0000 |
| commit | 970f8a17c9c86eff390252e13bb9a08a3fb5a098 (patch) | |
| tree | 3b8e3384288eadc66dd72b1d507e5f778cd93ec7 /security/selinux/hooks.c | |
| parent | landlock: Fix warning from KUnit tests (diff) | |
| download | kernel-970f8a17c9c86eff390252e13bb9a08a3fb5a098.tar.gz kernel-970f8a17c9c86eff390252e13bb9a08a3fb5a098.zip | |
samples/landlock: Fix building on musl libc
Building with make allyesconfig on musl results in the following
In file included from samples/landlock/sandboxer.c:22:
/usr/include/sys/prctl.h:88:8: error: redefinition of 'struct prctl_mm_map'
88 | struct prctl_mm_map {
| ^~~~~~~~~~~~
In file included from samples/landlock/sandboxer.c:16:
usr/include/linux/prctl.h:134:8: note: originally defined here
134 | struct prctl_mm_map {
| ^~~~~~~~~~~~
This is mainly due to difference in the sys/prctl.h between glibc and
musl. The struct prctl_mm_map is defined in sys/prctl.h in musl.
Signed-off-by: Brahmajit Das <[email protected]>
[mic: Move down the if/include/endif block]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mickaël Salaün <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
