bpf-restrict-fsaccess: move STAT_DEV_TO_KERNEL into generic code

We want to reuse it when processing sock-diag messages, hence let's
generalize this.
This commit is contained in:
Lennart Poettering
2026-06-23 22:55:23 +02:00
parent cc174775f5
commit ce72c94acc
4 changed files with 8 additions and 8 deletions
+1
View File
@@ -25,6 +25,7 @@
#include <unistd.h>
#include "bpf-restrict-fsaccess.h"
#include "devnum-util.h"
#include "fd-util.h"
#include "log.h"
#include "string-util.h"