]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ima-setup: prefer safe_close() over plain close()
authorLennart Poettering <lennart@poettering.net>
Thu, 18 Oct 2018 14:12:06 +0000 (16:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Oct 2018 14:23:45 +0000 (16:23 +0200)
src/core/ima-setup.c

index d6a49ce100ad8d43cfb86fb65a4c47dde3342343..d9e5cf4f053dd31a1f084133cc521e50450fdc43 100644 (file)
@@ -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) {