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

          Line data    Source code
       1             : /* SPDX-License-Identifier: LGPL-2.1+ */
       2             : 
       3             : #include <sys/stat.h>
       4             : 
       5             : #include "selinux-util.h"
       6             : #include "tmpfile-util-label.h"
       7             : #include "tmpfile-util.h"
       8             : 
       9           0 : int fopen_temporary_label(
      10             :                 const char *target,
      11             :                 const char *path,
      12             :                 FILE **f,
      13             :                 char **temp_path) {
      14             : 
      15             :         int r;
      16             : 
      17           0 :         r = mac_selinux_create_file_prepare(target, S_IFREG);
      18           0 :         if (r < 0)
      19           0 :                 return r;
      20             : 
      21           0 :         r = fopen_temporary(path, f, temp_path);
      22             : 
      23           0 :         mac_selinux_create_file_clear();
      24             : 
      25           0 :         return r;
      26             : }

Generated by: LCOV version 1.14