LCOV - code coverage report
Current view: top level - shared - env-file-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 "env-file-label.h"
       6             : #include "env-file.h"
       7             : #include "selinux-util.h"
       8             : 
       9           0 : int write_env_file_label(const char *fname, char **l) {
      10             :         int r;
      11             : 
      12           0 :         r = mac_selinux_create_file_prepare(fname, S_IFREG);
      13           0 :         if (r < 0)
      14           0 :                 return r;
      15             : 
      16           0 :         r = write_env_file(fname, l);
      17             : 
      18           0 :         mac_selinux_create_file_clear();
      19             : 
      20           0 :         return r;
      21             : }

Generated by: LCOV version 1.14