From 1fb89422842ad2810ff361233a3462c3fda6f3c4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 18 Oct 2018 16:12:06 +0200 Subject: [PATCH] ima-setup: prefer safe_close() over plain close() --- src/core/ima-setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ima-setup.c b/src/core/ima-setup.c index d6a49ce100..d9e5cf4f05 100644 --- a/src/core/ima-setup.c +++ b/src/core/ima-setup.c @@ -58,7 +58,7 @@ int ima_setup(void) { return 0; } - close(imafd); + safe_close(imafd); imafd = open(IMA_SECFS_POLICY, O_WRONLY|O_CLOEXEC); if (imafd < 0) { -- 2.25.1