00001 00008 /* 00009 * Copyright 2009 Red Hat Inc., Durham, North Carolina. 00010 * All Rights Reserved. 00011 * 00012 * This library is free software; you can redistribute it and/or 00013 * modify it under the terms of the GNU Lesser General Public 00014 * License as published by the Free Software Foundation; either 00015 * version 2.1 of the License, or (at your option) any later version. 00016 * 00017 * This library is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00020 * Lesser General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU Lesser General Public 00023 * License along with this library; if not, write to the Free Software 00024 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00025 * 00026 * Authors: 00027 * Peter Vrabec <pvrabec@redhat.com> 00028 */ 00029 00030 #ifndef FINDFILE_H 00031 #define FINDFILE_H 00032 00033 #include "seap.h" 00034 #include "probe-api.h" 00035 #include "fsdev.h" 00036 00037 #define MTAB_PATH "/etc/mtab" 00038 #define LOCAL_FILESYSTEMS { "btrfs", \ 00039 "ext2", "ext3", "ext4", \ 00040 "ffs", \ 00041 "gfs", \ 00042 "hpfs", \ 00043 "jfs", \ 00044 "reiser4", "reiserfs", \ 00045 "ufs", \ 00046 "xfs", \ 00047 "zfs", NULL} 00048 00058 int find_files(SEXP_t *spath, SEXP_t *sfilename, SEXP_t *behaviors, 00059 int (*cb) (const char *, const char *, void *), void *arg); 00060 #endif