]> git.proxmox.com Git - systemd.git/blame - src/shared/smack-util.h
Imported Upstream version 217
[systemd.git] / src / shared / smack-util.h
CommitLineData
663996b3
MS
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
60f067b4
JS
8 Copyright 2013 Intel Corporation
9
10 Author: Auke Kok <auke-jan.h.kok@intel.com>
663996b3
MS
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>
663996b3 27
5eef597e 28bool mac_smack_use(void);
60f067b4 29
5eef597e 30int mac_smack_fix(const char *path, bool ignore_enoent, bool ignore_erofs);
663996b3 31
5eef597e
MP
32int mac_smack_apply(const char *path, const char *label);
33int mac_smack_apply_fd(int fd, const char *label);
34int mac_smack_apply_ip_in_fd(int fd, const char *label);
35int mac_smack_apply_ip_out_fd(int fd, const char *label);