mirror of
https://github.com/systemd/systemd.git
synced 2026-07-26 11:20:26 +00:00
Requiring /sys/fs/bpf path to be a mount point at the moment of cgroup controllers realization does more harm than good, because: * Realization happens early on boot, the mount point may not be ready at the time. That happens if mounts are made by a .mount unit (the issue we encountered). * BPF filesystem may be mounted on another point. Remove the check. Instead verify that path provided by BPFProgram= is within BPF fs when unit properties are parsed. Split in two commits for simple backport.
16 lines
321 B
C
16 lines
321 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
|
|
#pragma once
|
|
|
|
#include "unit.h"
|
|
|
|
static inline int bpf_foreign_supported(void) {
|
|
return cg_all_unified();
|
|
}
|
|
|
|
/*
|
|
* Attach cgroup-bpf programs foreign to systemd, i.e. loaded to the kernel by an entity
|
|
* external to systemd.
|
|
*/
|
|
int bpf_foreign_install(Unit *u);
|