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

This commit is contained in:
Lennart Poettering 2018-10-18 16:12:06 +02:00
parent b435812c64
commit 1fb8942284
1 changed files with 1 additions and 1 deletions

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) {