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:
7
parser/lib.h
Normal file
7
parser/lib.h
Normal 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_ */
|
Reference in New Issue
Block a user