2015-03-25 17:09:27 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2014 Canonical Ltd.
|
|
|
|
*
|
|
|
|
* The libapparmor library is licensed under the terms of the GNU
|
|
|
|
* Lesser General Public License, version 2.1. Please see the file
|
|
|
|
* COPYING.LGPL.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SYS_APPARMOR_PRIVATE_H
|
|
|
|
#define _SYS_APPARMOR_PRIVATE_H 1
|
|
|
|
|
2015-03-25 17:09:27 -05:00
|
|
|
#include <dirent.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
2015-03-25 17:09:27 -05:00
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
int _aa_is_blacklisted(const char *name, const char *path);
|
|
|
|
|
2015-03-25 17:09:27 -05:00
|
|
|
void _aa_autofree(void *p);
|
|
|
|
void _aa_autoclose(int *fd);
|
|
|
|
void _aa_autofclose(FILE **f);
|
|
|
|
|
2015-03-25 17:09:27 -05:00
|
|
|
int _aa_asprintf(char **strp, const char *fmt, ...);
|
|
|
|
|
2015-03-25 17:09:27 -05:00
|
|
|
int _aa_dirat_for_each(DIR *dir, const char *name, void *data,
|
|
|
|
int (* cb)(DIR *, const char *, struct stat *, void *));
|
|
|
|
|
2015-03-25 17:09:27 -05:00
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
#endif /* sys/apparmor_private.h */
|