LCOV - code coverage report
Current view: top level - basic - selinux-util.h (source / functions) Hit Total Coverage
Test: main_coverage.info Lines: 1 1 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             : #pragma once
       3             : 
       4             : #include <stdbool.h>
       5             : #include <sys/socket.h>
       6             : #include <sys/types.h>
       7             : 
       8             : #include "macro.h"
       9             : #include "label.h"
      10             : 
      11             : bool mac_selinux_use(void);
      12             : void mac_selinux_retest(void);
      13             : 
      14             : int mac_selinux_init(void);
      15             : void mac_selinux_finish(void);
      16             : 
      17             : int mac_selinux_fix(const char *path, LabelFixFlags flags);
      18             : int mac_selinux_apply(const char *path, const char *label);
      19             : 
      20             : int mac_selinux_get_create_label_from_exe(const char *exe, char **label);
      21             : int mac_selinux_get_our_label(char **label);
      22             : int mac_selinux_get_child_mls_label(int socket_fd, const char *exe, const char *exec_label, char **label);
      23             : char* mac_selinux_free(char *label);
      24             : 
      25             : int mac_selinux_create_file_prepare(const char *path, mode_t mode);
      26             : int mac_selinux_create_file_prepare_at(int dirfd, const char *path, mode_t mode);
      27             : void mac_selinux_create_file_clear(void);
      28             : 
      29             : int mac_selinux_create_socket_prepare(const char *label);
      30             : void mac_selinux_create_socket_clear(void);
      31             : 
      32             : int mac_selinux_bind(int fd, const struct sockaddr *addr, socklen_t addrlen);
      33             : 
      34           3 : DEFINE_TRIVIAL_CLEANUP_FUNC(char*, mac_selinux_free);

Generated by: LCOV version 1.14