]> git.proxmox.com Git - systemd.git/blobdiff - src/core/ima-setup.c
New upstream version 236
[systemd.git] / src / core / ima-setup.c
index 6c7b209977b1d6851fc3d70a9b4edc90760fc475..80319622ad5ca6c5ac70b3544b62ff9cde29f057 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
 /***
   This file is part of systemd.
 
@@ -61,7 +62,7 @@ int ima_setup(void) {
         }
 
         /* attempt to write the name of the policy file into sysfs file */
-        if (write(imafd, IMA_POLICY_PATH, strlen(IMA_POLICY_PATH)) > 0)
+        if (write(imafd, IMA_POLICY_PATH, STRLEN(IMA_POLICY_PATH)) > 0)
                 goto done;
 
         /* fall back to copying the policy line-by-line */