libsmack: add functions for setting and removing labels on files
[platform/upstream/smack.git] / libsmack / common.h
1 /*
2  * This file is part of libsmack.
3  *
4  * Copyright (C) 2011-2013 Intel Corporation
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public License
8  * version 2.1 as published by the Free Software Foundation.
9  *
10  * This library is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18  * 02110-1301 USA
19  */
20
21 #ifndef COMMON_H
22 #define COMMON_H
23
24 #define ACCESSES_D_PATH "/etc/smack/accesses.d"
25 #define CIPSO_D_PATH "/etc/smack/cipso.d"
26
27 int clear(void);
28 int apply_rules(const char *path, int clear);
29 int apply_cipso(const char *path);
30
31 #endif // COMMON_H