LCOV - code coverage report
Current view: top level - shared - ima-util.c (source / functions) Hit Total Coverage
Test: main_coverage.info Lines: 4 4 100.0 %
Date: 2019-08-22 15:41:25 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /* SPDX-License-Identifier: LGPL-2.1+ */
       2             : 
       3             : #include <unistd.h>
       4             : 
       5             : #include "ima-util.h"
       6             : 
       7             : static int use_ima_cached = -1;
       8             : 
       9           3 : bool use_ima(void) {
      10             : 
      11           3 :         if (use_ima_cached < 0)
      12           1 :                 use_ima_cached = access("/sys/kernel/security/ima/", F_OK) >= 0;
      13             : 
      14           3 :         return use_ima_cached;
      15             : }

Generated by: LCOV version 1.14