]> git.ipfire.org Git - thirdparty/systemd.git/commit
use O_PATH when getting cgroup fd
authorMatteo Croce <teknoraver@meta.com>
Thu, 4 Jul 2024 01:14:22 +0000 (03:14 +0200)
committerMatteo Croce <teknoraver@meta.com>
Tue, 16 Jul 2024 13:03:37 +0000 (15:03 +0200)
commit572e163ef53b5ba6553cc4722bafd8322a569fcd
tree3094ab0281eed974a2c8a857e57e74e0172be6af
parentb209fff3a51b8e57ea5970575bf8d4db4790b620
use O_PATH when getting cgroup fd

O_PATH mode is enough to attach a bpf program to a cgroup, use it
instead of O_RDONLY
src/core/bpf-restrict-ifaces.c