binfmt: check if binfmt is mounted before applying rules

This commit is contained in:
Yu Watanabe
2022-12-15 03:36:27 +09:00
parent 5aaa79ce96
commit 94ba5b1532
3 changed files with 24 additions and 3 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
#include "missing_magic.h"
#include "stat-util.h"
static int binfmt_mounted(void) {
int binfmt_mounted(void) {
_cleanup_close_ int fd = -EBADF;
int r;
+1
View File
@@ -1,4 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
int binfmt_mounted(void);
int disable_binfmt(void);