ima-setup: prefer safe_close() over plain close()
This commit is contained in:
parent
b435812c64
commit
1fb8942284
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue