ima-setup: prefer safe_close() over plain close()

This commit is contained in:
Lennart Poettering
2018-10-18 16:23:45 +02:00
parent b435812c64
commit 1fb8942284
+1 -1
View 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) {