Open SCAP Library
findfile.h
Go to the documentation of this file.
1 
8 /*
9  * Copyright 2009 Red Hat Inc., Durham, North Carolina.
10  * All Rights Reserved.
11  *
12  * This library is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU Lesser General Public
14  * License as published by the Free Software Foundation; either
15  * version 2.1 of the License, or (at your option) any later version.
16  *
17  * This library is distributed in the hope that it will be useful,
18  * but 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
23  * License along with this library; if not, write to the Free Software
24  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25  *
26  * Authors:
27  * Peter Vrabec <pvrabec@redhat.com>
28  */
29 
30 #ifndef FINDFILE_H
31 #define FINDFILE_H
32 
33 #include "seap.h"
34 #include "probe-api.h"
35 #include "fsdev.h"
36 #include "oscap_export.h"
37 
38 #define MTAB_PATH "/etc/mtab"
39 #define LOCAL_FILESYSTEMS { "btrfs", \
40  "ext2", "ext3", "ext4", \
41  "ffs", \
42  "gfs", \
43  "hpfs", \
44  "jfs", \
45  "reiser4", "reiserfs", \
46  "ufs", \
47  "xfs", \
48  "zfs", NULL}
49 
59 int find_files(SEXP_t *spath, SEXP_t *sfilename, SEXP_t *behaviors,
60 OSCAP_API int (*cb) (const char *, const char *, void *), void *arg);
61 
62 #endif
63 
fsdev API public header file
Definition: sexp-types.h:82
Probe API public header.
int find_files(SEXP_t *spath, SEXP_t *sfilename, SEXP_t *behaviors, OSCAP_API int(*cb)(const char *, const char *, void *), void *arg)
Search the filesystem according to the specified path, filename and behaviors.