mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 06:16:03 +00:00
allow directories to be passed to the parser
Allow directories to be passed directly to the parser and handled instead of needing an initscript to find the files in the directory. eg. load all profiles in profiles dir apparmor_parser -r /etc/apparmor.d/ eg. load all binary files in the cache dir apparmor_parser -Br /etc/apparmor.d/cache/ Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: Steve Beattie <steve@nxnw.org>
This commit is contained in:
@@ -279,7 +279,7 @@ struct include_stack_t {
|
||||
|
||||
struct include_stack_t *include_stack_head = NULL;
|
||||
|
||||
static void start_include_position(char *filename)
|
||||
static void start_include_position(const char *filename)
|
||||
{
|
||||
if (current_filename)
|
||||
free(current_filename);
|
||||
@@ -323,7 +323,7 @@ void pop_include_stack(void)
|
||||
free(include);
|
||||
}
|
||||
|
||||
void reset_include_stack(char *filename)
|
||||
void reset_include_stack(const char *filename)
|
||||
{
|
||||
while (include_stack_head)
|
||||
pop_include_stack();
|
||||
|
Reference in New Issue
Block a user