xref: /aosp_15_r20/external/selinux/restorecond/restorecond.h (revision 2d543d20722ada2425b5bdab9d0d1d29470e7bba)
1*2d543d20SAndroid Build Coastguard Worker /* restorecond.h --
2*2d543d20SAndroid Build Coastguard Worker  * Copyright 2006 Red Hat Inc., Durham, North Carolina.
3*2d543d20SAndroid Build Coastguard Worker  * All Rights Reserved.
4*2d543d20SAndroid Build Coastguard Worker  *
5*2d543d20SAndroid Build Coastguard Worker  * This program is free software; you can redistribute it and/or modify
6*2d543d20SAndroid Build Coastguard Worker  * it under the terms of the GNU General Public License as published by
7*2d543d20SAndroid Build Coastguard Worker  * the Free Software Foundation; either version 2 of the License, or
8*2d543d20SAndroid Build Coastguard Worker  * (at your option) any later version.
9*2d543d20SAndroid Build Coastguard Worker  *
10*2d543d20SAndroid Build Coastguard Worker  * This program is distributed in the hope that it will be useful,
11*2d543d20SAndroid Build Coastguard Worker  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12*2d543d20SAndroid Build Coastguard Worker  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13*2d543d20SAndroid Build Coastguard Worker  * GNU General Public License for more details.
14*2d543d20SAndroid Build Coastguard Worker  *
15*2d543d20SAndroid Build Coastguard Worker  * You should have received a copy of the GNU General Public License
16*2d543d20SAndroid Build Coastguard Worker  * along with this program; if not, write to the Free Software
17*2d543d20SAndroid Build Coastguard Worker  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18*2d543d20SAndroid Build Coastguard Worker  *
19*2d543d20SAndroid Build Coastguard Worker  * Authors:
20*2d543d20SAndroid Build Coastguard Worker  *   Dan Walsh <[email protected]>
21*2d543d20SAndroid Build Coastguard Worker  *
22*2d543d20SAndroid Build Coastguard Worker  */
23*2d543d20SAndroid Build Coastguard Worker 
24*2d543d20SAndroid Build Coastguard Worker #ifndef RESTORED_CONFIG_H
25*2d543d20SAndroid Build Coastguard Worker #define RESTORED_CONFIG_H
26*2d543d20SAndroid Build Coastguard Worker 
27*2d543d20SAndroid Build Coastguard Worker extern int debug_mode;
28*2d543d20SAndroid Build Coastguard Worker extern const char *homedir;
29*2d543d20SAndroid Build Coastguard Worker extern int terminate;
30*2d543d20SAndroid Build Coastguard Worker extern int master_wd;
31*2d543d20SAndroid Build Coastguard Worker extern int run_as_user;
32*2d543d20SAndroid Build Coastguard Worker 
33*2d543d20SAndroid Build Coastguard Worker extern int start(void);
34*2d543d20SAndroid Build Coastguard Worker extern int server(int, const char *watch_file);
35*2d543d20SAndroid Build Coastguard Worker 
36*2d543d20SAndroid Build Coastguard Worker extern void exitApp(const char *msg) __attribute__((__noreturn__));
37*2d543d20SAndroid Build Coastguard Worker extern void read_config(int fd,	const char *watch_file);
38*2d543d20SAndroid Build Coastguard Worker 
39*2d543d20SAndroid Build Coastguard Worker extern int watch(int fd, const char *watch_file);
40*2d543d20SAndroid Build Coastguard Worker extern void watch_list_add(int inotify_fd, const char *path);
41*2d543d20SAndroid Build Coastguard Worker extern int watch_list_find(int wd, const char *file);
42*2d543d20SAndroid Build Coastguard Worker extern void watch_list_free(int fd);
43*2d543d20SAndroid Build Coastguard Worker extern int watch_list_isempty(void);
44*2d543d20SAndroid Build Coastguard Worker 
45*2d543d20SAndroid Build Coastguard Worker extern struct restore_opts r_opts;
46*2d543d20SAndroid Build Coastguard Worker 
47*2d543d20SAndroid Build Coastguard Worker #endif
48