2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

apparmor: abstract out the directory walking routine

The apparmor_parser has 3 different directory walking routines. Abstract
them out and use a single common routine.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-By: Steve Beattie <sbeattie@ubuntu.com>
This commit is contained in:
John Johansen
2012-08-16 16:26:03 -07:00
parent 9c42360b34
commit c0b5035b1a
6 changed files with 272 additions and 199 deletions

7
parser/lib.h Normal file
View File

@@ -0,0 +1,7 @@
#ifndef __AA_LIB_H_
#define __AA_LIB_H_
int dirat_for_each(DIR *dir, const char *name, void *data,
int (* cb)(DIR *, const char *, struct stat *, void *));
#endif /* __AA_LIB_H_ */