]> git.ipfire.org Git - thirdparty/systemd.git/commit
lsm-util: move detection of support of LSMs into a new lsm-util.[ch] helper
authorLennart Poettering <lennart@poettering.net>
Thu, 16 Mar 2023 16:56:23 +0000 (17:56 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 18 Apr 2023 06:22:21 +0000 (08:22 +0200)
commitb3a062cb80bfa4ca96a321aa4736fe4f939ff7cd
tree61e334c0835fca70683a8768fff6f9fcd9776ed1
parent25d9c6cdaf82d3f627db92b69f3be3e2a68e06fa
lsm-util: move detection of support of LSMs into a new lsm-util.[ch] helper

This makes the bpf LSM check generic, so that we can use it elsewhere.
it also drops the caching inside it, given that bpf-lsm code in PID1
will cache it a second time a stack frame further up when it checks for
various other bpf functionality.
src/core/bpf-lsm.c
src/shared/lsm-util.c [new file with mode: 0644]
src/shared/lsm-util.h [new file with mode: 0644]
src/shared/meson.build