diff options
| author | Johannes Schneider <johannes.schneider@leica-geosystems.com> | 2024-06-20 13:51:25 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-06-25 11:50:58 +0100 |
| commit | 182e599dbce552a6f0b3d014854fb570d74adc5d (patch) | |
| tree | 29e9004674749c11758ea9d57c281f5b437644e3 /meta/recipes-core/systemd/systemd_255.6.bb | |
| parent | 23dacdb593ff4731b9757e45ab64ebc2872cb33f (diff) | |
| download | poky-182e599dbce552a6f0b3d014854fb570d74adc5d.tar.gz | |
systemd: add PACKAGECONFIG for bpf-framework
The bpf-framework is used to pre-compile eBPFs that required for the
systemd.resource-control features RestrictFileSystems=[1] and
RestrictNetworkInterfaces=[2] to work.
Apart from 'clang-native' to compile the eBPFs, the required kernel
switches are described in [3].
Link: https://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html#RestrictFileSystems=
Link: https://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html#RestrictNetworkInterfaces=
Link: https://kinvolk.io/blog/2021/04/extending-systemd-security-features-with-ebpf/
(From OE-Core rev: 6f90320bf3028a67d1fd444dfaa62f3888066ea4)
Signed-off-by: Johannes Schneider <johannes.schneider@leica-geosystems.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd_255.6.bb')
| -rw-r--r-- | meta/recipes-core/systemd/systemd_255.6.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd_255.6.bb b/meta/recipes-core/systemd/systemd_255.6.bb index 15b631fc07..defdb15620 100644 --- a/meta/recipes-core/systemd/systemd_255.6.bb +++ b/meta/recipes-core/systemd/systemd_255.6.bb | |||
| @@ -132,6 +132,7 @@ PACKAGECONFIG[acl] = "-Dacl=true,-Dacl=false,acl" | |||
| 132 | PACKAGECONFIG[audit] = "-Daudit=true,-Daudit=false,audit" | 132 | PACKAGECONFIG[audit] = "-Daudit=true,-Daudit=false,audit" |
| 133 | PACKAGECONFIG[backlight] = "-Dbacklight=true,-Dbacklight=false" | 133 | PACKAGECONFIG[backlight] = "-Dbacklight=true,-Dbacklight=false" |
| 134 | PACKAGECONFIG[binfmt] = "-Dbinfmt=true,-Dbinfmt=false" | 134 | PACKAGECONFIG[binfmt] = "-Dbinfmt=true,-Dbinfmt=false" |
| 135 | PACKAGECONFIG[bpf-framework] = "-Dbpf-framework=true,-Dbpf-framework=false,clang-native bpftool-native libbpf,libbpf" | ||
| 135 | PACKAGECONFIG[bzip2] = "-Dbzip2=true,-Dbzip2=false,bzip2" | 136 | PACKAGECONFIG[bzip2] = "-Dbzip2=true,-Dbzip2=false,bzip2" |
| 136 | PACKAGECONFIG[cgroupv2] = "-Ddefault-hierarchy=unified,-Ddefault-hierarchy=hybrid" | 137 | PACKAGECONFIG[cgroupv2] = "-Ddefault-hierarchy=unified,-Ddefault-hierarchy=hybrid" |
| 137 | PACKAGECONFIG[coredump] = "-Dcoredump=true,-Dcoredump=false" | 138 | PACKAGECONFIG[coredump] = "-Dcoredump=true,-Dcoredump=false" |
