• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /***
2   This file is part of eudev, forked from systemd.
3 
4   Copyright 2013 Intel Corporation
5 
6   Author: Auke Kok <auke-jan.h.kok@intel.com>
7 
8   systemd is free software; you can redistribute it and/or modify it
9   under the terms of the GNU Lesser General Public License as published by
10   the Free Software Foundation; either version 2.1 of the License, or
11   (at your option) any later version.
12 
13   systemd is distributed in the hope that it will be useful, but
14   WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16   Lesser General Public License for more details.
17 
18   You should have received a copy of the GNU Lesser General Public License
19   along with systemd; If not, see <http://www.gnu.org/licenses/>.
20 ***/
21 
22 #pragma once
23 
24 #include <stdbool.h>
25 
26 bool mac_smack_use(void);
27 
28 int mac_smack_fix(const char *path, bool ignore_enoent, bool ignore_erofs);
29 
30 int mac_smack_apply(const char *path, const char *label);
31 int mac_smack_apply_fd(int fd, const char *label);
32 int mac_smack_apply_pid(pid_t pid, const char *label);
33 int mac_smack_apply_ip_in_fd(int fd, const char *label);
34 int mac_smack_apply_ip_out_fd(int fd, const char *label);
35