Searched refs:imafd (Results 1 – 1 of 1) sorted by relevance
26 _cleanup_close_ int imafd = -1; in ima_setup() local45 imafd = open(IMA_SECFS_POLICY, O_WRONLY|O_CLOEXEC); in ima_setup()46 if (imafd < 0) { in ima_setup()52 if (write(imafd, IMA_POLICY_PATH, STRLEN(IMA_POLICY_PATH)) > 0) in ima_setup()62 safe_close(imafd); in ima_setup()64 imafd = open(IMA_SECFS_POLICY, O_WRONLY|O_CLOEXEC); in ima_setup()65 if (imafd < 0) { in ima_setup()83 if (len > 0 && write(imafd, line, len) < 0) in ima_setup()