From: Lennart Poettering Date: Thu, 18 Oct 2018 14:12:06 +0000 (+0200) Subject: ima-setup: prefer safe_close() over plain close() X-Git-Tag: v240~513^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fb89422842ad2810ff361233a3462c3fda6f3c4;p=thirdparty%2Fsystemd.git ima-setup: prefer safe_close() over plain close() --- diff --git a/src/core/ima-setup.c b/src/core/ima-setup.c index d6a49ce100a..d9e5cf4f053 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) {