mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
Merge parser: Fix build error when compiling with DEBUG=1
A copy/paste error leads to a build failure due to an undefined variable "name" in parser_misc.c:clear_cap_flag(). MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/608 Signed-off-by: Mike Salvatore <mike.salvatore@canonical.com> Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
commit
37d7f8d8d3
2 changed files with 2 additions and 1 deletions
|
@ -986,6 +986,7 @@ int process_binary(int option, aa_kernel_interface *kernel_interface,
|
|||
|
||||
void reset_parser(const char *filename)
|
||||
{
|
||||
PDEBUG("Resetting parser for profile %s\n", filename);
|
||||
memset(&mru_policy_tstamp, 0, sizeof(mru_policy_tstamp));
|
||||
memset(&cache_tstamp, 0, sizeof(cache_tstamp));
|
||||
mru_skip_cache = 1;
|
||||
|
|
|
@ -344,7 +344,7 @@ void clear_cap_flag(capability_flags flags)
|
|||
int i;
|
||||
|
||||
for (i = 0; cap_table[i].name; i++) {
|
||||
PDEBUG("Checking %s %s\n", name, cap_table[i].name);
|
||||
PDEBUG("Clearing capability flag for capability \"%s\"\n", cap_table[i].name);
|
||||
cap_table[i].flags = (capability_flags) (cap_table[i].flags & ~flags);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue