Skip to content

Commit

Permalink
apparmor: fix change_hat debug output
Browse files Browse the repository at this point in the history
Signed-off-by: John Johansen <[email protected]>
  • Loading branch information
John Johansen committed Jan 16, 2017
1 parent 5ef50d0 commit c3e1e58
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions security/apparmor/procattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,13 @@ int aa_setprocattr_changehat(char *args, size_t size, int test)
for (count = 0; (hat < end) && count < 16; ++count) {
char *next = hat + strlen(hat) + 1;
hats[count] = hat;
AA_DEBUG("%s: (pid %d) Magic 0x%llx count %d hat '%s'\n"
, __func__, current->pid, token, count, hat);
hat = next;
}
}

AA_DEBUG("%s: Magic 0x%llx Hat '%s'\n",
__func__, token, hat ? hat : NULL);
} else
AA_DEBUG("%s: (pid %d) Magic 0x%llx count %d Hat '%s'\n",
__func__, current->pid, token, count, "<NULL>");

return aa_change_hat(hats, count, token, test);
}
Expand Down

0 comments on commit c3e1e58

Please sign in to comment.