chiark / gitweb /
Fix segv introduced by 2fd069b18e525860514a70d3ea08410ca122d3e2
[elogind.git] / src / shared / smack-util.h
1 /*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
2
3 #pragma once
4
5 /***
6   This file is part of systemd.
7
8   Copyright 2013 Intel Corporation
9
10   Author: Auke Kok <auke-jan.h.kok@intel.com>
11
12   systemd is free software; you can redistribute it and/or modify it
13   under the terms of the GNU Lesser General Public License as published by
14   the Free Software Foundation; either version 2.1 of the License, or
15   (at your option) any later version.
16
17   systemd is distributed in the hope that it will be useful, but
18   WITHOUT ANY WARRANTY; without even the implied warranty of
19   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20   Lesser General Public License for more details.
21
22   You should have received a copy of the GNU Lesser General Public License
23   along with systemd; If not, see <http://www.gnu.org/licenses/>.
24 ***/
25
26 #include <stdbool.h>
27
28 bool use_smack(void);
29 int smack_label_path(const char *path, const char *label);
30 int smack_label_fd(int fd, const char *label);
31 int smack_label_ip_in_fd(int fd, const char *label);
32 int smack_label_ip_out_fd(int fd, const char *label);