mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 22:35:35 +00:00
libapparmor: Move over the lib functions needed by cache loading code
The function names must be prepended with "_aa_" since they're going to be exported from libapparmor. The code bases using the _aa_autofree(), _aa_autoclose(), and _aa_autofclose() will need to internally alias those functions to the previously used autofree, autoclose, and autofclose names. Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Acked-by: Seth Arnold <seth.arnold@canonical.com> Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -17,10 +17,21 @@
|
||||
#ifndef _SYS_APPARMOR_PRIVATE_H
|
||||
#define _SYS_APPARMOR_PRIVATE_H 1
|
||||
|
||||
#include <dirent.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
int _aa_is_blacklisted(const char *name, const char *path);
|
||||
|
||||
void _aa_autofree(void *p);
|
||||
void _aa_autoclose(int *fd);
|
||||
void _aa_autofclose(FILE **f);
|
||||
|
||||
int _aa_dirat_for_each(DIR *dir, const char *name, void *data,
|
||||
int (* cb)(DIR *, const char *, struct stat *, void *));
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* sys/apparmor_private.h */
|
||||
|
Reference in New Issue
Block a user